octave-maintainers
[Top][All Lists]
Advanced

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

Re: `argn' ? … still part of Octave?


From: John W. Eaton
Subject: Re: `argn' ? … still part of Octave?
Date: Wed, 5 Oct 2011 20:27:09 -0400

On  6-Oct-2011, Carnë Draug wrote:

| I found this because I wanted to implement a new class and was trying
| to mimic the obj.method type of API (for matlab compatibility).

I don't think you can completely mimic handle classes in Octave since
Octave doesn't really provide a way to create references.

| idea is to use arg (or inputname) to get the name of the variable in
| the caller and change its value with assignin('caller',...)

OK, I guess you can try that, but it will be somewhat slow and
it seems to me that it will definitely be clumsy.

jwe


reply via email to

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