[Bugzilla] [Bug 731] Samuel GOUGEON has changed bug_file_loc

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Fri Mar 23 20:59:05 CET 2018


http://bugzilla.scilab.org/show_bug.cgi?id=731
--------- Bug Summary -----------
fun2string and macr2tree cannot cope with nested function definitions

---------- Changed by ------------
sgougeon at free.fr

---------- What changed ----------
bug_file_loc


Samuel GOUGEON <sgougeon at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|I've put in a file and      |
                   |loaded the following        |
                   |snippet from
               |
                   |help function:
             |
                   |
                           |
                   |//nested functions          |
                   |definition
                 |
                   |function y=foo(x)
          |
                   |a=sin(x)
                   |
                   |function y=sq(x),           |
                   |y=x^2,endfunction
          |
                   |y=sq(a)+1
                  |
                   |endfunction
                |
                   |
                           |
                   |then I get:
                |
                   |
                           |
                   |-->fun2string(foo)
         |
                   |cmplxt : code erronne :     |
                   |    0
                      |
                   | !--error    37 
           |
                   |incorrect function at line  |
                   |******
                     |
                   |at line      13 of function |
                   |fun2string                  |
                   |called
                     |
                   |by :  
                     |
                   |fun2string(foo)
            |
                   |
                           |
                   |
                           |
                   |-->t=macr2tree(foo);        |
                   |     
                      |
                   |complexity: wrong code      |
                   |673720360                   |

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180323/7ba138bd/attachment.htm>


More information about the Bugzilla mailing list