Re: Get vars in current scope at compile time?

2014-12-20 Thread Rikki Cattermole via Digitalmars-d-learn
On 20/12/2014 11:03 p.m., bearophile wrote: Rikki Cattermole: No way to do this. But perhaps it's worth supporting as future enhancement with a __traits. What are the use cases? Bye, bearophile Short answer, I'm not keen on the idea, at least not yet. I would far more comfortable once I'v

Re: Get vars in current scope at compile time?

2014-12-20 Thread bearophile via Digitalmars-d-learn
Rikki Cattermole: No way to do this. But perhaps it's worth supporting as future enhancement with a __traits. What are the use cases? Bye, bearophile

Re: Get vars in current scope at compile time?

2014-12-19 Thread Rikki Cattermole via Digitalmars-d-learn
On 20/12/2014 10:09 a.m., Tofu Ninja wrote: Is there some way to get a list of the variables that are in the current scope via traits? Some things like allMembers? I would like to be able to call this from a mixin to grab the locals in the scope that the mixin is being dropped into. No way to

Get vars in current scope at compile time?

2014-12-19 Thread Tofu Ninja via Digitalmars-d-learn
Is there some way to get a list of the variables that are in the current scope via traits? Some things like allMembers? I would like to be able to call this from a mixin to grab the locals in the scope that the mixin is being dropped into.