suggestion: relaxing reqirements for version and mixin
Artyom Shalkhakov
artyom.shalkhakov at gmail.com
Tue Apr 3 02:30:08 PDT 2007
Stewart Gordon Wrote:
> Thomas Kuehne wrote:
>
> <snip>
> > In my view it would be realy nice to allow the following code:
> >
> > template Foo(){
> > return:
> > }
> >
> > void doFoo(){
> > mixin Foo;
> > }
> >
> > Ok, that's a trival excample but should give you the idea.
> >
> > The content of the version expression should only be interpreted
> > after validating the scope of "version". e.g.
> >
> > if( version(STRICT){a<200 || } a>0){
> > // blabla
> > }
>
> Both those features smack of textual processing to me.
>
> "Modern languages should not be text processing, they should be symbolic
> processing."
>
> And a potential parsing nightmare.
>
> Stewart.
>
> --
> My e-mail is valid but not my primary mailbox, aside from its being the
> unfortunate victim of intensive mail-bombing at the moment. Please keep
> replies on the 'group where everyone may benefit.
Thanks for the tips. I'm off to read the articles you mentioned.
More information about the Digitalmars-d
mailing list