help-octave
[Top][All Lists]
Advanced

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

Re: equivalent for C-style init: structname varname[] = {...} ?


From: Francesco Potortì
Subject: Re: equivalent for C-style init: structname varname[] = {...} ?
Date: Wed, 21 Nov 2012 15:14:08 +0100

>>>> Having Octave barf on something on which Matlab barfs is a definite
>>>> plus.
>>>
>>>What, you mean like barf on "endif" and "endfor" and double quotes?
>>
>> I think that --traditional does it, doesn't it?
>
>No, that command-line argument only affects superficial cosmetic
>changes. There is "warning on Octave:matlab-incompatible", but note
>bug #36743:
>
>    https://savannah.gnu.org/bugs/?36743

Thank you.  I miss a reference in the manual from --traditional to this
warning.  Unfortunately I do not have time to create a patch, but I'll
post a bug report.

>Also, we decided to allow arbitrary strings as struct field names, but
>warn about them:
>
>    http://hg.savannah.gnu.org/hgweb/octave/rev/f2b8f90052fd
>    http://hg.savannah.gnu.org/hgweb/octave/rev/808e4f13e220

This appears reasonable to me.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

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