On Tue, Dec 01, 2009 at 11:07:15AM -0800, Walter Bright wrote: > std.variant needs to be extended with opDispatch so it can execute a > call operation on a Variant, then it will be very very similar to > Javascript.
I looked into this for a few minutes this morning. Variant already stores delegates, so all that needs to be done is the existing opCall needs to be renamed (easy enough. Maybe it could become a constructor?) and then implemented to forward its arguments to the inner delegate. That's the tricky part, and I haven't had the time to figure that out yet. -- Adam D. Ruppe http://arsdnet.net