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

_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to