D for projects similar to Forth Interpreters?

JohnZ not at here.net
Sun Mar 1 07:21:50 PST 2009


== Quote from Jarrett Billingsley (jarrett.billingsley at gmail.com)'s
article
> On Sat, Feb 28, 2009 at 6:10 AM, bearophile
<bearophileHUGS at lycos.com> wrote:
> > JohnZ Wrote:
> >>In this case what would be the pros and cons if any of D compared
with C or asm?<
> >
> > If you use C with GCC you can use the computed goto, that is
really useful to speed up an interpreter like a Forth one. D misses
still such feature because it was thought as not useful enough.
> D turns many switch statements into computed gotos.  It's a compiler
> optimization.

ah that might be useful..



More information about the Digitalmars-d mailing list