Can you do this in D?

Christophe Travert travert at phare.normalesup.org
Thu Jul 26 06:21:18 PDT 2012


"bearophile" , dans le message (digitalmars.D:173297), a écrit :
>> I'm not sure what you mean. Do you mean I can go edit the open 
>> source compiler and add in my own language feature? Or does the 
>> ability to add a $/@ operator already exist?
> 
> I mean that D compiler writers don't need to introduce new syntax 
> to add that feature. But I don't see lot of people asking for it.

The $ prefix operator *is* a new syntax. It impacts the lexer and parser 
and they would have to create new precedence rules. The only think that 
already exists is the syntax to overload such operator, if it existed.

I don't see anything like new operators comming in the langage before 
long.

-- 
Christophe


More information about the Digitalmars-d mailing list