Minor extension to cast syntax
Bruce Adams
tortoise_74 at yeah.who.co.uk
Wed Oct 31 14:07:07 PDT 2007
Gregor Richards Wrote:
> Gregor Richards wrote:
> >> There is that idea in language design that if it can be done as a
> >> function it should be unless there is a good reason not to.
> >
> > In highly dynamic languages where performance isn't a primary objective,
> > yes. Dynamic arrays, anyone?
> >
>
> I should also mention, while I'm at it, that this can NOT be done as a
> function.
>
> - Gregor Richards
It could if your language was dynamic enough to support types as first class objects so that no meta syntax was required. :)
More information about the Digitalmars-d
mailing list