octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38236] invoking script in demo block to defin


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #38236] invoking script in demo block to define varibles causes errors
Date: Sat, 02 Feb 2013 16:09:01 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20100101 Firefox/18.0

URL:
  <http://savannah.gnu.org/bugs/?38236>

                 Summary: invoking script in demo block to define varibles
causes errors
                 Project: GNU Octave
            Submitted by: cdf
            Submitted on: Sat 02 Feb 2013 05:09:00 PM CET
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

let the file 'df_vr.m' contain the following


 vr = 7;


and the file 'u_vr' be as follows



function ret = u_vr (vr)
  ret = 7 * vr;
endfunction

%!demo
%! df_vr
%! v = 2 * vr;
%! a = u_vr (v)



running 'demo u_vr' once gives a correct result:


>> demo u_vr
u_vr example 1:
 df_vr
 v = 2 * vr;
 a = u_vr (v)

a =  98


but running the same command a second time causes an error


u_vr example 1:
 df_vr
 v = 2 * vr;
 a = u_vr (v)

u_vr example 1: failed
'vr' undefined near line 4 column 10


I marked this as a regression because it seems to work correctly
in the stable release (at least on 3.6.3, I do not have a build of 3.6.4 to
try on)

I attach copies of the two simple scripts above for testing convenience.

c.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 02 Feb 2013 05:09:00 PM CET  Name: u_vr.m  Size: 102B   By: cdf

<http://savannah.gnu.org/bugs/download.php?file_id=27371>
-------------------------------------------------------
Date: Sat 02 Feb 2013 05:09:00 PM CET  Name: df_vr.m  Size: 8B   By: cdf

<http://savannah.gnu.org/bugs/download.php?file_id=27370>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38236>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]