Bill Allombert on Thu, 01 Oct 2009 11:54:08 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: experimental patch for iferr |
On Thu, Oct 01, 2009 at 07:55:42AM +0200, Lorenz Minder wrote: > Hi, > > 2) I'd prefer if the second argument was a reference, i.e., one would write > > iferr(whatever, &E, seq1, seq2) > > Right now it seems that this is the only function in GP that > modifies an argument that was (syntactically) passed by value. I have > no idea if this is difficult to do. (I've no time for studying > source code ATM, unfortunately.) This is a misunderstanding: E is not modified! E is actually a local parameter that only exist in the 'err' branch, as in the following expressions: for(E=1,10,print(E)) sumdiv(48,E,E^2+1) vector(5,E,E^2+1) etc. Cheers, Bill.