<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
Let<br>
<font color="#3333ff"><tt>function s = myfun()</tt><tt><br>
</tt><tt> clear s</tt><tt><br>
</tt><tt> s.a = %pi</tt><tt><br>
</tt><tt> s.b = %z</tt><tt><br>
</tt><tt>endfunction</tt><br>
</font>
<p>Presently, we get<br>
</p>
<font color="#3333ff"><tt>--> myfun.a</tt><tt><br>
</tt><tt>Attempt to reference field of non-structure array.</tt><tt><br>
<br>
</tt><tt>--> myfun().a</tt><tt><br>
</tt><tt> ans =</tt><tt><br>
</tt><tt> 3.1415927</tt><br>
</font><br>
The type of the symbol myfun as a function is known when calling
myfun.a, isn't it?<br>
<p>So, is there a technical or a usage reason to not understand
implicitly myfun.a as myfun().a ?<br>
As well, couldn't we expect an error message routing the user to
defining %function_e() <br>
(unless Scilab provides a default definition) ?<br>
</p>
<p>Thanks<br>
Samuel<br>
<br>
</p>
</body>
</html>