help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a logical array of 0


From: John W. Eaton
Subject: Re: Create a logical array of 0
Date: Sun, 5 Sep 2004 15:35:50 -0400

On  5-Sep-2004, David Bateman <address@hidden> wrote:

| According to Josep Monés i Teixidor <address@hidden> (on 09/05/04):
| > No, The standard says that bool is required to convert to integral types
| > using 1 for true and false to 0, but sizeof(bool) doesn't need to be 1,
| > the standard says it's "implementation-defined".
| 
| So this is what I meant about autoconf options and conversions, since we
| don't know the size of bool....

But where do we actually care what the size is?  I'm not proposing
that we use bool as a size declaration for fwrite the way we use int8
or int32.  I'm only proposing it as an option for returning values
from fread as "logical".

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]