bugGNU Octave - Bugs: bug #33069, 'who' and/or 'clear' in caller...

 
 

bug #33069: 'who' and/or 'clear' in caller workspace broken

Submitted by:  Oliver Schwartz <oschwartz>
Submitted on:  Thu 14 Apr 2011 09:41:27 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Oliver SchwartzOpen/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 22 Jun 2013 01:52:20 AM UTC, comment #2:

I don't particularly know which changeset was involved but the development branch of octave no longer exhibits this problem (6/21/13). The fix will appear in the next major release of Octave (3.8).

Rik <rik5>
Project Administrator
Thu 14 Apr 2011 09:40:33 PM UTC, comment #1:

Confirmed in the development code as well. It is interesting that the variables are, in fact, cleared in that they are not available to the program. You can check this by asking for the value of the cleared variable and Octave will report that no such variable exists. This may, therefore, be just a reporting error in the who function.

A second observation is that if the workspace function is called twice then on the second call to the function the symbol table is already populated with the a and b variables. This shouldn't happen unless the variables were declared persistent.

I'm attaching workspace2.m which builds on the first attached script to show the errors I mention.

(file #23246)

Rik <rik5>
Project Administrator
Thu 14 Apr 2011 09:41:27 AM UTC, original submission:

Hi all,

if variables are assigned in the caller workspace, e.g.

then a subsequent 'clear' does not clear the workspace as expected, e.g.
will still list variable 'a'.

Octave 3.0.5 does not show this behaviour. All octave 3.2 releases on all plattforms that I've tested (Mac/ Windows) show this behaviour. 3.4.0 also shows this behaviour, at least on Mac with the latest build from octave forge. For reference I've attached the octave configuration on Mac.

I've also attached a small m-file that demonstrates the effect.

Kind regards,

Oliver

Oliver Schwartz <oschwartz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23246:  workspacetest2.m added by rik5 (625B - text/x-octave)
file #23237:  workspacetest.m added by oschwartz (423B - application/octet-stream)
file #23238:  octave_config.txt added by oschwartz (6KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by oschwartz (Submitted the item)
  • -unavailable- added by oschwartz
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Jun 2013 01:52:20 AM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 18 Apr 2011 11:17:43 PM UTCrik5StatusNone=>Confirmed
    Thu 14 Apr 2011 09:40:33 PM UTCrik5Attached File-=>Added workspacetest2.m, #23246
    Thu 14 Apr 2011 09:41:27 AM UTCoschwartzAttached File-=>Added workspacetest.m, #23237
      Attached File-=>Added octave_config.txt, #23238
      Carbon-Copy-=>Added oschwartz

    Back to the top


    Powered by Savane 3.1-cleanup1