Thread overview | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 28, 2014 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|nobody@puremagic.com |andrej.mitrovich@gmail.com --- Comment #4 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- Assigning this to myself. There's a whole host of traits that will be coming. -- |
April 30, 2014 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #5 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- https://github.com/D-Programming-Language/dmd/pull/3515 -- |
May 10, 2014 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 Jacob Carlborg <doob@me.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |doob@me.com --- Comment #6 from Jacob Carlborg <doob@me.com> --- Would it be possible to get the parameter types of a lambda which has some parameter types specified and some not? In that case I would expect "void" to be returned for those parameters that don't have a specified type. (int a, b) => a + b -- |
May 10, 2014 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 --- Comment #7 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- (In reply to Jacob Carlborg from comment #6) > Would it be possible to get the parameter types of a lambda which has some parameter types specified and some not? In that case I would expect "void" to be returned for those parameters that don't have a specified type. > > (int a, b) => a + b This probably expands to: void func(T)(int a, T b); Therefore it has 1 template parameter. If you use __traits(getTemplateParamCount, lambda) it will return 1. -- |
May 10, 2014 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 --- Comment #8 from Jacob Carlborg <doob@me.com> --- I'm interested to know if std.traits.ParameterTypeTuple (or similar) would work with lambdas with both regular types and templated types. -- |
May 10, 2014 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 --- Comment #9 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- (In reply to Jacob Carlborg from comment #8) > I'm interested to know if std.traits.ParameterTypeTuple (or similar) would work with lambdas with both regular types and templated types. Well I'd imagine changing what ParameterTypeTuple does right now would probably break a lot of code. So it's probably best to write a new set of library wrappers for the new traits. It's not very easy to combine all of these different types nto a single template. -- |
August 07, 2014 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx -- |
June 08, 2015 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 --- Comment #10 from Andrei Alexandrescu <andrei@erdani.com> --- It seems https://github.com/D-Programming-Language/phobos/pull/3394 takes care of this all. -- |
May 06, 2016 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 --- Comment #11 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- Recapping from the PR just closed (temporarily): ----- Ok, I'll start a discussion in the forums soon with a proposal of a (sub)set of the new traits and see which ones we really need, and whether we could implement as many of these in the library instead of adding additional compiler code. Closing for now. :) ----- I'll bring this up in the forums soon. -- |
December 17, 2022 [Issue 9608] Add introspection for templates | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9608 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P4 -- |
Copyright © 1999-2021 by the D Language Foundation