[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Slicing ideas
- From: Coda Highland <chighland@...>
- Date: Fri, 6 Apr 2012 07:14:52 -0500
On Fri, Apr 6, 2012 at 4:28 AM, <tjericke@indel.ch> wrote:
> On 06-04-2012 01:51, krunal.rao78@gmail.com wrote:
>
> Subject: Re: Slicing ideas
>
> But with this you cannot set :p
>
> KR
>
> One solution would be to have a __newcall metamethod that is called when you
> assign to a function call:
>
> t(1,2,3) = foo -> __newcall(t,foo,1,2,3)
>
> It looks a little funny though, but after all Ada lives well with having ()
> for both indexing and function calls.
I can get behind the idea of having function invocations acting as an lvalue.
/s/ Adam