<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
Hi Pierre,<br>
<br>
The handling of comments looks buggy indeed, could you please <a
href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software">report
a bug</a> with the test-case?<br>
Thanks!<br>
<br>
Regards,<br>
Paul<br>
<br>
<div class="moz-cite-prefix">On 02/24/2017 10:01 AM, Pierre
Vuillemin wrote:<br>
</div>
<blockquote
cite="mid:bf6bca3f47c6136b31038b02c933fdf5@pierre-vuillemin.fr"
type="cite">Hello all,
<br>
<br>
I've just realised that block-comments are now available in Scilab
6 and I find it quite convenient. I've noticed strange behaviour
when using the auto-indent tool ctrl + i in scinote though.
<br>
<br>
For instance with this code
<br>
<br>
<br>
<br>
// Author : Pierre Vuillemin (2017)
<br>
// License : GNU GPL
<br>
<br>
function problem = sopi_max(fun, varargin)
<br>
/*
<br>
Creates a maximisation problem.
<br>
<br>
Calling Sequence
<br>
problem = sopi_max(fun)
<br>
problem = sopi_max(fun, c1, ..., cn)
<br>
<br>
Parameters
<br>
fun : the objective function (sopiVar)
<br>
ci : constraints (sopiCst or list of sopiCst)
<br>
problem : the optimisation problem (sopiPro)
<br>
<br>
See also
<br>
sopi_var
<br>
sopi_min
<br>
sopi_solve
<br>
sopi_example
<br>
*/
<br>
problem = sopi_min(-fun, varargin(:))
<br>
endfunction
<br>
<br>
<br>
the auto-ident tool adds strange indentation to the endfunction +
it suppress the indentation of the text withing the block comment.
Shouldn't it behave as if // were used?
<br>
<br>
Regards,
<br>
<br>
Pierre
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
</body>
</html>