[Scilab-Dev] Recursive extraction on a function's identifier
Samuel Gougeon
sgougeon at free.fr
Tue Jun 25 13:38:19 CEST 2019
Hello,
Let
function s = myfun()
clear s
s.a = %pi
s.b = %z
endfunction
Presently, we get
--> myfun.a
Attempt to reference field of non-structure array.
--> myfun().a
ans =
3.1415927
The type of the symbol myfun as a function is known when calling
myfun.a, isn't it?
So, is there a technical or a usage reason to not understand implicitly
myfun.a as myfun().a ?
As well, couldn't we expect an error message routing the user to
defining %function_e()
(unless Scilab provides a default definition) ?
Thanks
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20190625/4a980cc3/attachment.htm>
More information about the dev
mailing list