[Issue 4427] __traits should have isFunction, isVariable, etc

2017-07-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4427 Vladimir Panteleev changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 4427] __traits should have isFunction, isVariable, etc

2013-03-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #14 from Rob T 2013-03-29 00:06:50 PDT --- (In reply to comment #13) I would like to see something like isNullable(T) that evaluates to true if the type value can be assigned a null. Eg, struct S { ... } S* s; class C { ... } i

[Issue 4427] __traits should have isFunction, isVariable, etc

2013-01-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #13 from Andrej Mitrovic 2013-01-12 11:54:22 PST --- Jonathan can you give us an updated on what's still missing? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail b

[Issue 4427] __traits should have isFunction, isVariable, etc

2013-01-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #12 from Manu 2013-01-12 03:18:49 PST --- (In reply to comment #11) > I've lost track here, what's left to implement that requires the compiler's > help by exposing a new __trait? I think the __trait's were more or less good now (a

[Issue 4427] __traits should have isFunction, isVariable, etc

2013-01-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 Andrej Mitrovic changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comme

[Issue 4427] __traits should have isFunction, isVariable, etc

2012-11-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 Manu changed: What|Removed |Added CC||turkey...@gmail.com --- Comment #10 from Manu

[Issue 4427] __traits should have isFunction, isVariable, etc

2012-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #

[Issue 4427] __traits should have isFunction, isVariable, etc

2012-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #8 from Rob T 2012-11-17 08:31:39 PST --- (In reply to comment #7) > I had forgotten that I created this enhancement request, though I don't know > how valid it is at this point given how powerful is expressions are (though > how >

[Issue 4427] __traits should have isFunction, isVariable, etc

2012-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #7 from Jonathan M Davis 2012-11-16 15:46:47 PST --- I had forgotten that I created this enhancement request, though I don't know how valid it is at this point given how powerful is expressions are (though how to fully use them isn

[Issue 4427] __traits should have isFunction, isVariable, etc

2012-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 Rob T changed: What|Removed |Added CC||al...@ucora.com --- Comment #6 from Rob T 201

[Issue 4427] __traits should have isFunction, isVariable, etc

2010-07-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 Jacob Carlborg changed: What|Removed |Added CC||d...@me.com --- Comment #5 from Jacob

[Issue 4427] __traits should have isFunction, isVariable, etc

2010-07-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #4 from Jonathan M Davis 2010-07-06 10:05:58 PDT --- I would expect that immutable and const variables would still be variables, just not mutable ones. If you wanted to know whether they were const or immutable, you could do a sepa

[Issue 4427] __traits should have isFunction, isVariable, etc

2010-07-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #3 from Simen Kjaeraas 2010-07-06 04:29:56 PDT --- I agree. Many of these could easily be turned into templates in std.traits, and perhaps they should. template isClass( T ) { enum isClass = is( T == class ); } unittest {

[Issue 4427] __traits should have isFunction, isVariable, etc

2010-07-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 --- Comment #2 from Jonathan M Davis 2010-07-05 18:12:14 PDT --- Good points, though would == function check when it was a function pointer rather than a function? In either case, I think that you should be able to check these in a consistent

[Issue 4427] __traits should have isFunction, isVariable, etc

2010-07-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4427 Simen Kjaeraas changed: What|Removed |Added CC||simen.kja...@gmail.com --- Comment #1