delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/22/22:51:54

From: Richard Dawe <richdawe AT bigfoot DOT com>
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer
Subject: Re: Detecting Windows and Windows directory from DOS
Date: Wed, 22 Mar 2000 20:49:00 +0000
Organization: Customer of Planet Online
Lines: 29
Message-ID: <38D931BC.4421EB34@bigfoot.com>
References: <8am5ub$o0v$1 AT news6 DOT svr DOT pol DOT co DOT uk> <38D108E3 DOT D9821E3B AT americasm01 DOT nt DOT com> <8arkm8$m3h$1 AT newsg2 DOT svr DOT pol DOT co DOT uk> <qft2dsk6mso6suit8q0aikucnffq0cb77q AT 4ax DOT com> <38D1EFAA DOT 7A48D29D AT is DOT elta DOT co DOT il> <38D6844B DOT 876E5631 AT bigfoot DOT com> <MPG DOT 134160c4f0a1f29b98ae44 AT news DOT mindspring DOT com> <38D7E5F5 DOT ED6FB969 AT bigfoot DOT com> <MPG DOT 134208384d03df7798ae4c AT news DOT mindspring DOT com>
NNTP-Posting-Host: modem-63.erythromycin.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 953765298 28177 62.136.93.63 (22 Mar 2000 22:48:18 GMT)
NNTP-Posting-Date: 22 Mar 2000 22:48:18 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Stan Brown wrote:
> 
> Said richdawe AT bigfoot DOT com (Richard Dawe) in
> comp.os.msdos.programmer:
> >By the way, I think you mean "in user code they _may_ lead to undefined
> >behavior" rather than "in user code they lead to undefined behavior",
> >which is a bit harsh. ;)
> 
> No, I meant what I said. Undefined behavior means you can't count
> on it to do any particular thing.
<snip>

OK, I take your point, I'm wrong - I guess I asked for this. I guess I
have this (incorrect) point of view from my pragmatic learning, i.e. the
compiler "defines" what is defined behaviour.

> It *may* lead to winged monkeys shooting out of your monitor,
> though in this particular case it's likely that the program would
> compile and run as desired. That's undefined behavior.

Yargh! I hope not. I'll open my window just in case. ;) 

Bye,

-- 
Richard Dawe
richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019