9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Boyd Roberts" <boyd@planete.net>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] no const?
Date: Thu, 14 Sep 2000 14:34:36 +0200	[thread overview]
Message-ID: <002301c01e48$24674480$89c584c3@cybercable.fr> (raw)
In-Reply-To: <39BFF408.BF3B8EE@null.net>

----- Original Message ----- 
From: "Douglas A. Gwyn" <DAGwyn@null.net>
 
> Since "const" doesn't mean "constant", again it's evident that
> you're criticizing something that you do not understand.

i know what i means; this value/object cannot be modified.
you could use it with the arg to strlen; a pointer to const char.
if you really wanna smash memory 'const' will not save you;
say you malloc the arg to strlen.  later on (not in strlen) you could
smash it.  const overly complicates the language and adds little value.

> > volatile?  yeah, i remember times when i coulda used it.  like in
> > the 8th ed tu-16 tape driver that john mackin and i fixed.
> > volatile would been nice, but we fixed it with a macro (no assembler).
> 
> I don't know the specific problem you encountered, but the PDP-11
> PCC had a specific hack to disable optimization for certain kinds
> of access that could be identified as potentially within the I/O
> page.  I don't recall whether Ritchie's compiler performed the
> optimization in the first place.

hmm, 8th ed ran on VAXen, not 11's; only about 10 licences
were granted.  but, it was some 16 bit reference in the interrupt routine.
8th ed was based on 4.1BSD and so i don't rightly recall what compiler
it was running.  ken should know.

> It's easy to complain about what others do, but also pointless.

really?   criticism serves no purpose?  nonsense.





  reply	other threads:[~2000-09-14 12:34 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-13 14:00 David L Rubin
2000-09-13 14:17 ` Boyd Roberts
2000-09-13 16:42   ` Douglas A. Gwyn
2000-09-13 17:03     ` Boyd Roberts
2000-09-13 17:11       ` Steve Kilbane
2000-09-13 19:33         ` Boyd Roberts
2000-09-14  8:13           ` Douglas A. Gwyn
2000-09-14 12:34             ` Boyd Roberts [this message]
2000-09-15  8:47               ` Douglas A. Gwyn
2000-09-15 11:34                 ` Boyd Roberts
2000-09-15 13:07                   ` Theo Honohan
2000-09-15 14:55                     ` Boyd Roberts
2000-09-16  8:51                       ` Matt Lawless
2000-09-18 10:47                   ` Douglas A. Gwyn
2000-09-15 20:46                 ` Steve Kilbane
2000-09-14 19:41           ` Steve Kilbane
2000-09-18 10:47             ` Douglas A. Gwyn
2000-09-13 14:22 Russ Cox
2000-09-13 14:30 ` Boyd Roberts
2000-09-13 14:29 miller
2000-09-13 14:39 forsyth
2000-09-13 16:44 ` Douglas A. Gwyn
2000-09-13 18:06 Russ Cox
2000-09-14  8:13 ` Douglas A. Gwyn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002301c01e48$24674480$89c584c3@cybercable.fr' \
    --to=boyd@planete.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).