[Prev][Next][Index][Thread]
Re: Good book on Dylan?
"Jeffrey Siegal" <jbs@quiotix.com> wrote in message 3AC62D18.C750C9B@quiotix.com">news:3AC62D18.C750C9B@quiotix.com...
> Mark Jordan wrote:
>
> > Does Dylan have a keyword or some other means to tell the compiler
> > that it can optimise all it likes because the object behind the interface
> > isn't going to change at runtime?
>
> Yes. By default, "interfaces" are closed and can't be extended outside
> the module (modules can contain multiple files), allowing the compiler
> to optimize away dispatch. If you want full dynamism, you have to
> explicitly open them up.
Ah, excellent stuff, just what I wanted.
> > I suppose what I'm saying is that in
> > the majority of cases I only need compile-time polymorphism, not
> > full blown run-time polymorphism.
>
> You'll like Dylan.
I think your right :-)
Thanks,
Mark.
References: