Bill Allombert on Fri, 14 Dec 2012 18:12:34 +0100

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

Re: W prototype

On Thu, Dec 13, 2012 at 03:42:33PM +0100, Pascal Molin wrote:
> What is the meaning of the 'W' prototype for parser ? It is used only for
> lists.

Yes, it is only meant to be used for list. It takes a GP lvalue and modify
it in place (this is different from &, which takes a pointer to a lvalue.) 

> Pascal, still whishing to pass arguments by reference in gp.

What do you need exactly ? In libpari you can use the code 'D&'.
In GP probably the best for the time being is to use multiaffect:
[a,b,c] = f(x)