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

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

[Octave-bug-tracker] [bug #37521] clear('functions') deletes subfunction


From: anonymous
Subject: [Octave-bug-tracker] [bug #37521] clear('functions') deletes subfunctions
Date: Mon, 08 Oct 2012 07:20:53 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1

Follow-up Comment #4, bug #37521 (project octave):

My original example does _not_ involve nested subfunctions. The syntax without
explicit 'end' for any function is interpreted in the same way as explicit
'end' between every function. Therefore, your example is equivalent to mine.

For the record:

Octave 3.4.3:

> subfunction
error: `subfunction_1' undefined near line 3 column 1
error: called from:
error:   /.../subfunction.m at line 3, column 1

Matlab R2011b:

> subfunction                              
hi


I am not planning on using nested subfunctions, so I do not care much about
that.

The expected behavior for clear('functions') is for it to clear persistent
variables of every function.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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