octave-maintainers
[Top][All Lists]
Advanced

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

Re: Reducing memory by emulating IDL's temporary() function


From: John W. Eaton
Subject: Re: Reducing memory by emulating IDL's temporary() function
Date: Tue, 29 Apr 2008 02:17:46 -0400

On 25-Apr-2008, Judd Storrs wrote:

| On Fri, Apr 25, 2008 at 1:43 AM, Jaroslav Hajek <address@hidden> wrote:
| 
| > 1. there can be an explicit means of "give a value and deallocate".
| > Instead of creating a stand-alone `temporary', however, I suggest
| > extending `clear' to return the cleared value when called with nargout
| > = 1.
| >
| 
| One challenge of changing clear like this is that the function form of clear
| requires a string argument.

The "command" form of clear is also passing a character string
argument to the internal "clear" function.  The difference is just in
the way the command/function is parsed.

| The demonstration code I posted also requires a
| string also but I considered that a bug in my implementation.

Why?  Clear works on variable names in the symbol table, not on
values.

jwe



reply via email to

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