[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Idea: Extension of function / return syntax.
From: |
John W. Eaton |
Subject: |
Re: Idea: Extension of function / return syntax. |
Date: |
Mon, 7 Jan 2013 13:17:23 -0500 |
On 7-Jan-2013, Michael D. Godfrey wrote:
| In any case, I have thought now and then of proposing that "ans"
| be made into a stack. This idea is somewhat relevant to this
| discussion, so I am just mentioning it now. It might be nice
| is this feature could be part of a more general capability rather
| than a special case.
I've considered this in the past but it presents some memory
management issues. With a language like Octave, it would be easy to
chew up all available memory with a stack of mostly useless values.
Apart from the memory issues, what should the syntax be? Currently,
ans is a variable that is automatically created. I think it has to
stay that way for compatibility with Matlab. So maybe there would be
another function to access the contents of the "answer stack"?
jwe
- Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/05
- Re: Idea: Extension of function / return syntax., Jordi Gutiérrez Hermoso, 2013/01/06
- Re: Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/06
- Re: Idea: Extension of function / return syntax., Júlio Hoffimann, 2013/01/06
- Re: Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/06
- Re: Idea: Extension of function / return syntax., Júlio Hoffimann, 2013/01/07
- Re: Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/07
- Re: Idea: Extension of function / return syntax., Júlio Hoffimann, 2013/01/07
- Re: Idea: Extension of function / return syntax., Michael D. Godfrey, 2013/01/07
- Re: Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/07
- Re: Idea: Extension of function / return syntax.,
John W. Eaton <=
- Re: Idea: Extension of function / return syntax., Michael D. Godfrey, 2013/01/07
Re: Idea: Extension of function / return syntax., Jordi Gutiérrez Hermoso, 2013/01/07