[Swift-devel] Nasty multiparameter function hack.
Ben Clifford
benc at hawaga.org.uk
Fri Apr 27 06:40:45 CDT 2007
On Wed, 25 Apr 2007, Mihael Hategan wrote:
> On Wed, 2007-04-25 at 08:32 +0000, Ben Clifford wrote:
> > However, where the parameter is a variable:
> >
> > @f(x)
> >
> > this turned into a Karajan function call with two parameters, a 'variable'
> > and a 'path'. In the above case, the variable is x and the path is empty.
> >
> > In the case of @f(x.y) then the variable would be x and the path would be
> > y.
>
> That's kinda wrong:
> @f(x) should be f(getfield(x, path="")) which can be reduced to f(x) and
> @f(x.y) should be f(getfield(x, path="y")).
I put this in r657 (without the path="" reduction).
--
More information about the Swift-devel
mailing list