Suffix-based literal syntax

Bill Baxter dnewsgroup at billbaxter.com
Wed May 30 11:41:01 PDT 2007


Its a neat idea.  I wonder if the proposed transformation is the right 
way though.

>> I propose that, for number and string literals (which already sport 
>> suffixes at the moment) if a suffix is found not from the language, it 
>> be rewritten as an opSuffix call, so
>>         5km
>>     turns into
>>         opSuff_km(5)
>>

Maybe that should be

    km.opSuff(5)


--bb



More information about the Digitalmars-d mailing list