[Top][All Lists]

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

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

From: Dimitri Maziuk
Subject: Re: equivalent for C-style init: structname varname[] = {...} ?
Date: Mon, 19 Nov 2012 09:34:12 -0600
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 11/18/2012 11:42 AM, Sergei Steshenko wrote:

"have mixed-type fields" - "foo" and "foo bar" are _both_ strings, so it's the 
same type.

I suggest to read first.

"two" and 2 would be different types (string vs (integer) number), but it's not 
what I was talking about.

But that was what *I* was talking about:
 string name;
 float value;
which an array or map does not allow. So octave structs are about as similar to structs as Pink Floyd is similar to Cherry Garcia ice cream.

Any yes, if they're hashmaps then obviously "foo bar" is a valid map key, but "a( 3 ).foo bar" is not a valid syntax. Because the space between foo and bar is a token separator.


reply via email to

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