[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: equivalent for C-style init: structname varname[] = {...} ?
From: |
Sergei Steshenko |
Subject: |
Re: equivalent for C-style init: structname varname[] = {...} ? |
Date: |
Mon, 12 Nov 2012 13:53:02 -0800 (PST) |
----- Original Message -----
> From: Jordi Gutiérrez Hermoso <address@hidden>
> To: Yury T. <address@hidden>
> Cc: address@hidden
> Sent: Monday, November 12, 2012 11:42 PM
> Subject: Re: equivalent for C-style init: structname varname[] = {...} ?
>
> On 12 November 2012 16:14, Yury T. <address@hidden> wrote:
>
>> But possibly Sergei will be so kind to adapt my example to that
>> consistent_struct function he posted before.
>
> SS's "consistent_struct" is his misunderstanding of struct arrays,
> which he refuses to attempt to understand due to the fact that
> indexing them with fields produces cell arrays, which are anathema to
> him. There's nothing consistent about it. In fact, it breaks array
> semantics that all other Octave data types have.
[snip]
>
> - Jordi G. H.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
Of course. I have no interest in understanding crappy Matlab/Octave language.
Instead I prefer to wrap the two mentioned languages constructs by functions
which allow me to use familiar C/C++/Perl paradigm/idioms, specifically the
Perl ones.
Matlab/Octave structs are associative arrays according to the documentation,
and this exactly how I treat them.
--Sergei.
- Re: equivalent for C-style init: structname varname[] = {...} ?, (continued)
- Re: equivalent for C-style init: structname varname[] = {...} ?, Sergei Steshenko, 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Jordi Gutiérrez Hermoso, 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Jordi Gutiérrez Hermoso, 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Jordi Gutiérrez Hermoso, 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Jordi Gutiérrez Hermoso, 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?, Jordi Gutiérrez Hermoso, 2012/11/12
- Re: equivalent for C-style init: structname varname[] = {...} ?,
Sergei Steshenko <=
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/13
- Re: equivalent for C-style init: structname varname[] = {...} ?, Sergei Steshenko, 2012/11/13
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/13
- Re: equivalent for C-style init: structname varname[] = {...} ?, Sergei Steshenko, 2012/11/13
- Re: equivalent for C-style init: structname varname[] = {...} ?, Sergei Steshenko, 2012/11/13
- Re: equivalent for C-style init: structname varname[] = {...} ?, Sergei Steshenko, 2012/11/13
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/14
- Re: equivalent for C-style init: structname varname[] = {...} ?, Jordi Gutiérrez Hermoso, 2012/11/14
- Re: equivalent for C-style init: structname varname[] = {...} ?, Yury T., 2012/11/14
- Re: equivalent for C-style init: structname varname[] = {...} ?, Jordi Gutiérrez Hermoso, 2012/11/14