Growing a Language (applicable to @attribute design)

Jacob Carlborg doob at me.com
Thu Nov 15 23:26:10 PST 2012


On 2012-11-15 22:08, Joseph Rushton Wakeling wrote:

> Complete misunderstanding there -- I'd interpreted Simen's remark as
> saying that e.g. auto x = 1; would automatically assign the correct type
> where builtins were concerned, and I was pointing out that this wouldn't
> cover all builtins.  Though I guess auto x = 1UL; would work.

Should this give you an unsigned long regardless of architecture? 
"size_t" is unsigned int on 32bit platforms and unsigned long on 64bit 
platforms.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list