On Thu, Apr 16, 2009 at 1:14 PM, Arild Boes <abo...@gmail.com> wrote:

> Actually the f-call syntactic sugar seems like a good way to keep core
> classes of any library very lean and mean, whilst maintaining the ability to
> expand the module without re-compiling the original library! (just import
> this guy, and the new functions will be available to you as if declared in
> the original type).

Unfortunately it only works with arrays and AAs at the moment, though
the plan for D2 was to extend it to arbitrary types.

Some libraries (like Dog) do abuse the fact that it works on arrays,
though, by doing clever things like "typedef void[] Something;", and
you don't even know it's an array ;)

Reply via email to