octave-maintainers
[Top][All Lists]
Advanced

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

location in source of "if (object)" behaviour


From: Colin Macdonald
Subject: location in source of "if (object)" behaviour
Date: Mon, 04 Aug 2014 11:27:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Consider:

> if (object) disp('hi') end

Matlab seems to automatically call "if (logical(object))" at least
for non-builtin objects, which is rather nice.

I can't really tell what Octave does: so far looks same as "if
(false)"  :)   Please can someone suggest where look in the source code?

(There are also discrepancies w.r.t. "if (array)" between Octave and
Matlab.  And between Matlab and its own documentation!  I will
submit bugs but should look at source first...)

thanks,
Colin

- -- 
Colin Macdonald
University Lecturer in Numerical Methodologies
Tutorial Fellow at Oriel College
University of Oxford
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJT32AfAAoJEAzlCRPFMm7lFREIAJng9zZuaN72avha21aeeH8k
hO6yqb99R5UG0r2Wp6BkdQ7DeSGf9g8b/SbPz2Z4CfWAIbpE4YwmkE7WiLVlPflx
lCa2G4aPScXF0VfnPjo0hh9dDGm0qkRvJ7ZrUGHKDqWbP75+ckTRhpzo7AIyNyrt
pGNmHdODKpsOCjEmkwOgXkOeJEd9oygPiOemBG5a7kprHVloBU1ZflkhWuJZgAVV
NKaG2vldkz3jkbitJKbn4dHxTXlEe66tIY/u8jLP1ZwElx73PF6MLvzxgD3lYQ/b
1HoRkqTyqMDvoWvimdJ7oUORxI/JAdW6nPp9TL8KJgOORuBOTTjnP25sEp98ua4=
=68x+
-----END PGP SIGNATURE-----



reply via email to

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