Input statement again

Osvaldo Sergio Farhat de Carvalho osvaldo at dcc.ufmg.br
Thu Feb 12 13:21:04 CET 2009


Hi all,

I am using Scilab for a first course on computer programming for science
and engineering students. For beginers, the input statement seems to me as
essential, at least for the first examples. Unfortunately, as far as I
know, the bug reported many times has not yet been fixed for Scilab 5.0.*.
Does someone know of some other way to construct in Scilab an interaction
statement as simple as the input statement?

For my purposes, an implementation of the input function as simple as the
one bellow would suffice, but only if done by the Scilab team, because I
dont want to give complicated instructions to my students.,

   function r = input(msg);
     printf("%s:",msg);
     s = scanf("%s"););
     r = eval(s);
   endfunction

Osvaldo


Jacco Kramer said on 11/11/2008 15:52:
> Hi, I just tried to use the �input� function in scilab 5.0.3 on Win XP.
> When used on the commandline it works fine, but if I run it from scipad
> I get errors. I couldn�t copy it: the only way to get the error was to
> press enter and make a quick screenshot just before scilab shut
> (itself?) down. So, I attached the screenshot to this mail.

This is one of the most often reported bug.

http://bugzilla.scilab.org/show_bug.cgi?id=2578
http://bugzilla.scilab.org/show_bug.cgi?id=1458
http://bugzilla.scilab.org/show_bug.cgi?id=3732
... and many others

Today is however special: it has been reported twice.

The opteam said they "have been working on it [...but...] these bugs
are not trivial to fix". Not idea about the plan for fixing it, if any.

Francois
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20090212/b51341a7/attachment.htm>


More information about the users mailing list