Re: enum string

2012-08-09 Thread Jonathan M Davis
On Thursday, August 09, 2012 01:51:43 Jonathan M Davis wrote: > On Thursday, August 09, 2012 10:43:15 Namespace wrote: > > Ok. Now I have built both phobos and druntime. > > Then I have packed the generated phobos.lib in the windows> lib. > > Now I still have in druntime a new folder "lib" with a >

Re: enum string

2012-08-09 Thread Jonathan M Davis
On Thursday, August 09, 2012 10:43:15 Namespace wrote: > Ok. Now I have built both phobos and druntime. > Then I have packed the generated phobos.lib in the windows> lib. > Now I still have in druntime a new folder "lib" with a > druntime.lib in it. > What should I do with this? You don't need dru

Re: enum string

2012-08-09 Thread Namespace
Ok. Now I have built both phobos and druntime. Then I have packed the generated phobos.lib in the windows> lib. Now I still have in druntime a new folder "lib" with a druntime.lib in it. What should I do with this? And must I also build dmd anew?

Re: enum string

2012-08-08 Thread Jonathan M Davis
On Thursday, August 09, 2012 01:21:29 Namespace wrote: > And why ends my compilation with this error? You're going to need to build both druntime and Phobos if you want to build Phobos. I don't know what's in the zip file, since I haven't used it in ages, so I don't know if you can build them fr

Re: enum string

2012-08-08 Thread Namespace
And why ends my compilation with this error? To cast any Token is _very_ annoying. -.-

Re: enum string

2012-08-08 Thread Jonathan M Davis
On Wednesday, August 08, 2012 21:21:38 Namespace wrote: > Quick question: I've asked that for some time: why is it > std.stdio and not std.io? I don't remember. Probably because it's stdio.h in C/C++. But Steven Schveighoffer is working on a replacement for it which will probably be named std.io

Re: enum string

2012-08-08 Thread Namespace
I really wouldn't advise grabbing single files like that. The release was recent enough that it may be okay, but in general, that's just asking for trouble - especially with something as integral as std.traits. But if you really want to, this is the relevant pull request: https://github.com/D-

Re: enum string

2012-08-08 Thread Jonathan M Davis
On Wednesday, August 08, 2012 17:58:17 Namespace wrote: > On Tuesday, 7 August 2012 at 18:31:41 UTC, Jonathan M Davis wrote: > > On Tuesday, August 07, 2012 21:14:00 Dmitry Olshansky wrote: > >> isSomeString!T regression? See enum & std.traits topic in d.D. > >> Seems like it will work again in 2.0

Re: enum string

2012-08-08 Thread Namespace
On Tuesday, 7 August 2012 at 18:31:41 UTC, Jonathan M Davis wrote: On Tuesday, August 07, 2012 21:14:00 Dmitry Olshansky wrote: isSomeString!T regression? See enum & std.traits topic in d.D. Seems like it will work again in 2.061... Yeah. In 2.060, std.traits doesn't treat enums as their base

Re: enum string

2012-08-07 Thread Jonathan M Davis
On Tuesday, August 07, 2012 21:14:00 Dmitry Olshansky wrote: > isSomeString!T regression? See enum & std.traits topic in d.D. > Seems like it will work again in 2.061... Yeah. In 2.060, std.traits doesn't treat enums as their base type for stuff like isSomeString and isIntegral, which is the prob

Re: enum string

2012-08-07 Thread Namespace
On Tuesday, 7 August 2012 at 17:14:03 UTC, Dmitry Olshansky wrote: On 07-Aug-12 21:05, Namespace wrote: [code] import std.regex; enum Token : string { Blank = r"\s+" } void main() { const string text = "Foo Bar"; // text.split(regex(Token.Blank)); // don't work const string b

Re: enum string

2012-08-07 Thread Dmitry Olshansky
On 07-Aug-12 21:05, Namespace wrote: [code] import std.regex; enum Token : string { Blank = r"\s+" } void main() { const string text = "Foo Bar"; // text.split(regex(Token.Blank)); // don't work const string blank = Token.Blank; text.split(regex(blank)); // work } [/c

enum string

2012-08-07 Thread Namespace
[code] import std.regex; enum Token : string { Blank = r"\s+" } void main() { const string text = "Foo Bar"; // text.split(regex(Token.Blank)); // don't work const string blank = Token.Blank; text.split(regex(blank)); // work } [/code] Can me so