Re: [BUG, with testcase] problem with type system, __traits accross static libraries

2011-06-24 Thread Lloyd Dupont
Apparently it's not a bug, it's feature (I can't begin to fathom why) At any rate, by replacing writeln(mixin( "__traits(compiles, t." ~memberName ~" = (" ~typeof(__traits(getMember, T, memberName)).stringof ~").init)" )); with writeln(mixin( "__traits(compiles, t." ~memberName ~" = (typeof(

Re: [BUG, with testcase] problem with type system, __traits accross static libraries

2011-06-24 Thread Lloyd Dupont
In plain English what I am trying to do: I'm testing that the property can be set. I.e. class Foo { @property public Foo Subfoo() {} @property public Foo Subfoo2() {} @property public void Subfoo2(Foo f) {} } in the above class Subfoo can't be set, Subfoo2 can. I'm testing it with Foo f, __trai

About the new website

2011-06-24 Thread Lloyd Dupont
Congrats, looks much nicer and appealing. The library documentation seems more readable as well (in my humble opinion)!

[BUG, with testcase] problem with type system, __traits accross static libraries

2011-06-24 Thread Lloyd Dupont
It's going to be long as I'm going to post all the code... Basically there is a bug in the type system or __traits when the program is split in static lib and exe (as opposed to all in one). My test case: - I have a all in one console application which output "true true" - I have a project with

Re: is there some know bugs with traits, type and library?

2011-06-24 Thread Lloyd Dupont
Exactly! But I was able to reproduce the bug this morning simply by splitting it in an exe and lib, as I said. Going to post it in another post! "AliƇehreli" wrote in message news:iu2hbj$gb6$2...@digitalmars.com... Are you trying to say that you can't reproduce it with this simplified cod

is there some know bugs with traits, type and library?

2011-06-24 Thread Lloyd Dupont
I have code like that: module main; import std.variant; import std.stdio; import std.metastrings : Format; import std.traits; public mixin template property(T, string name) { mixin(Format!("private T _%s; @property public T %s() { return _%s; } @property

Another variant bug? problem? misleading feature?

2011-06-24 Thread Lloyd Dupont
The following program crash with the following error: std.variant.VariantException@std\variant.d(1161): Attempt to use an uninitialized VariantN module main; import std.variant; import std.stdio; class Foo { } int main(string[] argv) { Variant v1 = Variant.init; write

Re: strange Variant bug...

2011-06-24 Thread Lloyd Dupont
Sorry for the late answer I was sick, and thanks for the fix! It works indeed! :) Now... on onto other bugs! :) "Andrei Alexandrescu" wrote in message news:itst81$1qbe$2...@digitalmars.com... On 6/22/11 5:02 AM, Lloyd Dupont wrote: Hi Andrei, Thanks for the quick fix and w

Re: strange Variant bug...

2011-06-22 Thread Lloyd Dupont
exandrescu" wrote in message news:itqb62$2e8i$1...@digitalmars.com... On 6/21/11 9:05 AM, Lloyd Dupont wrote: I have DMD2.053 on Windows 7 x64 The following program compiled and crash on the line where I compare v7 and v1 = module main; import std.variant; import std.st

strange Variant bug...

2011-06-21 Thread Lloyd Dupont
I have DMD2.053 on Windows 7 x64 The following program compiled and crash on the line where I compare v7 and v1 = module main; import std.variant; import std.stdio; class Foo { } int main(string[] argv) { Variant v1 = Variant.init; Object o = new Foo(); Variant v7

missing: __traits(isPublic (private, etc...)

2011-06-20 Thread Lloyd Dupont
I am working a reflection / introspection library (dynamic / at runtime, as opposed to compile time with template and mixin). Now I can create "PropertyInfo" classes for property with very little code and it all works well. I'm hitting a problem, trying to "register" all property of my class

unitest problem

2011-06-15 Thread Lloyd Dupont
I'm using VisualD with DMD 2.053 on Windows 7 x64 I am building a static library and an exe, both in D, both with unitest turned on. the executable link with the library and use a module in the library which contains unitests yet, when Irun it, only the unit test in the exe are running, no unitt

Re: D Blog...

2011-05-23 Thread Lloyd Dupont
A new post.. still about visual studio experience... http://galador.net/codeblog/post/2011/05/23/Discovering-D-and-Visual-Studio-(continued%E2%80%A6).aspx "Lloyd Dupont" wrote in message news:ir5l9r$1gvh$1...@digitalmars.com... I just wrote an article on my blog (not much happe

Re: D Blog...

2011-05-23 Thread Lloyd Dupont
in message news:ir991l$1lu0$1...@digitalmars.com... Reddit has killed your blog! "Server is too busy" On 21/05/11 3:08 AM, Lloyd Dupont wrote: hay, I didn't know reddit! some comments are quite funny! "Walter Bright" wrote in message news:ir6aa1$2o0a$1...@digitalmars.com...

Re: D Blog...

2011-05-20 Thread Lloyd Dupont
hay, I didn't know reddit! some comments are quite funny! "Walter Bright" wrote in message news:ir6aa1$2o0a$1...@digitalmars.com... On 5/20/2011 4:58 AM, Lloyd Dupont wrote: I just wrote an article on my blog (not much happening on it though, I confess..) Which should ex

Re: D Blog...

2011-05-20 Thread Lloyd Dupont
e in message news:ir62sb$2a64$1...@digitalmars.com... Lloyd Dupont Wrote: Thanks for the feedback. Hey I might give a new go at DFL then. I like Entice the designer support. Well I could give a go at DWT as well, so I could make my own inform opinion! My initial conclusion my have been skewed

Re: D Blog...

2011-05-20 Thread Lloyd Dupont
! :) Will have a look this week, thanks for the correction. Much worthy feedback if I can use the designer in the end! :) "Jesse Phillips" wrote in message news:ir5u0m$20o9$1...@digitalmars.com... Lloyd Dupont Wrote: I just wrote an article on my blog (not much happening on it though,

D Blog...

2011-05-20 Thread Lloyd Dupont
I just wrote an article on my blog (not much happening on it though, I confess..) Which should explain to a .NET programmer how to have an easy and satisfying start with D: http://www.galador.net/codeblog/post/2011/05/20/D-for-NET-programmer.aspx