Re: Other integral literals?

2011-03-20 Thread Simen kjaeraas
On Sun, 20 Mar 2011 19:37:45 +0100, spir wrote: * ideally, I would use the sign to tell signed types apart (1 is unsigned, +1 is signed) I hope you messed that one up. An unadorned int literal should be signed. Period. * get rid of 01 octal bug! Oh gods, yes. -- Simen

Re: Other integral literals?

2011-03-20 Thread spir
On 03/20/2011 04:40 PM, bearophile wrote: Do you ever desire literals for byte, ubyte, short and ushort integrals (beside the currently present for int, uint, long, ulong that are 10, 10U, 10L, 10UL)? Because of the more strict typing of templates in some situations I have had to write things

Re: Other integral literals?

2011-03-20 Thread Kagamin
http://d.puremagic.com/issues/show_bug.cgi?id=4870

Other integral literals?

2011-03-20 Thread bearophile
Do you ever desire literals for byte, ubyte, short and ushort integrals (beside the currently present for int, uint, long, ulong that are 10, 10U, 10L, 10UL)? Because of the more strict typing of templates in some situations I have had to write things like: cast(ubyte)100 Possible literals for