|
From: | Marco atzeri |
Subject: | Re: foo_cs = foo{:} - feature or bug ? (octave-3.4.2); also, sizeof(foo{:}) |
Date: | Tue, 09 Aug 2011 11:21:47 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
On 8/9/2011 11:05 AM, Sergei Steshenko wrote:
Imagine that 'sizeof' and 'plot' use _different_ algorithms to deal with comma separated list.
what is the advantage ? Why complicate the things ? if you need a cs_list transformed in an object you can decide by yourself how.
Since 'plot' and "foo_cs = foo{:}" do use different algorithms to deal with "foo{:}", why can't "sizeof(foo{:})" us the same algorithm as "foo_cs = foo{:}" does and not the algorithm "plot(foo{:})" does ? Assignment (i.e. the "=" operation in LHS = RHS) is just another function call (inside Octave), so if that function call can do the foo{:} -> foo{1} conversion, why can't "sizeof(foo{:})" do the same foo{:} -> foo{1} conversion ?
if today sizeof take 1 argument and tomorrow is extended to take 2 or more, your request is error prone
Regards, Sergei.
Regards Marco
[Prev in Thread] | Current Thread | [Next in Thread] |