help-octave
[Top][All Lists]
Advanced

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

Re: variables `inheriting' values


From: John W. Eaton
Subject: Re: variables `inheriting' values
Date: Mon, 25 Jan 2010 23:43:58 -0500

On 25-Jan-2010, Mike B. wrote:

| Hi Jordi.
| 
| Thanks for replying.
| I was thinking more like a symlink to variables (similarly to a symlink 
between files in linux), so something like:
| symlink( a, b )  # symlink b to a, not sure if this exists
| a = 1
| 
| so now b (automatically) equals 1 as well.
| This ideally would also work even if `a' is still undefined, so I can fill-in 
values later, for example:
| clear -a
| symlink( a,b )
| a = 1
| 
| Is this possible?.

It sounds like you want references (or perhaps pointers) and Octave
does not have either.  Can you explain why do you want this feature
with a nontrivial example?

jwe


reply via email to

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