Thanks, I misunderstood.  I'm still interested, though, in hearing about 
Julian equivalents (if there are any) to Matlab's persistent variables.

--Peter

On Tuesday, February 3, 2015 at 1:41:02 PM UTC-8, Miles Lubin wrote:
>
> Just to clarify, my suggestion doesn't require any saved state between 
> functions. In the context of the discussion, the state can be saved in the 
> AbstractNLPEvaluator object.
>
> On Tuesday, February 3, 2015 at 1:11:36 PM UTC-5, Peter Simon wrote:
>>
>> I saw a suggestion from Miles Lubin in 
>> https://groups.google.com/forum/#!topic/julia-opt/z8Ld4-kdvCI for 
>> avoiding redundant calculations that appeared to involve saving state 
>> between function calls, and I wonder what is the standard Julian way to do 
>> this.  I'm asking here because this seems to be a general Julia question. 
>>  In Matlab I would use a "persistent" variable.  What is the corresponding 
>> idiom in Julia?  Closures?  Or something else?
>>
>> Thanks,
>> --Peter
>>
>

Reply via email to