suggestion: relaxing reqirements for version and mixin
Artyom Shalkhakov
artyom.shalkhakov at gmail.com
Tue Apr 3 02:37:12 PDT 2007
Artyom Shalkhakov Wrote:
> 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.
Oops, looks like the wrong button. =) Sorry.
More information about the Digitalmars-d
mailing list