Re: Literals starting with 0 will not work with UFCS

2012-07-04 Thread Jonathan M Davis
On Thursday, July 05, 2012 01:44:19 Jonathan Andrew wrote: > The one exception I found to starting literals with 0 is when > using dates - using the DateTime module (excellent write-up, > btw!) and having to pass dates like 07/04/09 as 7, 4, 9 without > the leading 0 is kind of awkward, for me at l

Re: Literals starting with 0 will not work with UFCS

2012-07-04 Thread Jonathan Andrew
On Wednesday, 4 July 2012 at 00:34:39 UTC, Jonathan M Davis wrote: On Wednesday, July 04, 2012 02:20:26 ixid wrote: 0.writeln(); This works. 01.writeln(); This doesn't. etc... Throw up a series of errors while any other number as the leading digit seems to work fine. Why is this? It

Re: Literals starting with 0 will not work with UFCS

2012-07-03 Thread Kenji Hara
On Wednesday, 4 July 2012 at 01:53:40 UTC, Jonathan M Davis wrote: On Wednesday, July 04, 2012 03:48:52 ixid wrote: > 0.writeln(); > > This works. It doesn't with 2.058, are we using different versions? Thanks for adding it to the bug list, I am not knowledgeable enough about D to judge if so

Re: Literals starting with 0 will not work with UFCS

2012-07-03 Thread ixid
I think I'm using 2.059 actually.

Re: Literals starting with 0 will not work with UFCS

2012-07-03 Thread Jonathan M Davis
On Wednesday, July 04, 2012 03:48:52 ixid wrote: > > 0.writeln(); > > > > This works. > > It doesn't with 2.058, are we using different versions? Thanks > for adding it to the bug list, I am not knowledgeable enough > about D to judge if something is a bug or if I've just not > understood it. 2.

Re: Literals starting with 0 will not work with UFCS

2012-07-03 Thread ixid
0.writeln(); This works. It doesn't with 2.058, are we using different versions? Thanks for adding it to the bug list, I am not knowledgeable enough about D to judge if something is a bug or if I've just not understood it.

Re: Literals starting with 0 will not work with UFCS

2012-07-03 Thread Jonathan M Davis
On Tuesday, July 03, 2012 17:34:21 Jonathan M Davis wrote: > On Wednesday, July 04, 2012 02:20:26 ixid wrote: > > 0.writeln(); > > This works. > > > 01.writeln(); > > This doesn't. > > > etc... > > > > Throw up a series of errors while any other number as the leading > > digit seems to work fi

Re: Literals starting with 0 will not work with UFCS

2012-07-03 Thread Jonathan M Davis
On Wednesday, July 04, 2012 02:20:26 ixid wrote: > 0.writeln(); This works. > 01.writeln(); This doesn't. > etc... > > Throw up a series of errors while any other number as the leading > digit seems to work fine. Why is this? It's probably an artifact of getting rid of octal literals and is c

Literals starting with 0 will not work with UFCS

2012-07-03 Thread ixid
0.writeln(); 01.writeln(); etc... Throw up a series of errors while any other number as the leading digit seems to work fine. Why is this?