Re: This is probably trivial or impossible Code Introspection...

2015-09-20 Thread WhatMeWorry via Digitalmars-d-learn
On Sunday, 20 September 2015 at 05:50:16 UTC, Ali Çehreli wrote: On 09/19/2015 10:30 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Sun, Sep 20, 2015 at 05:21:03AM +, WhatMeWorry via Digitalmars-d-learn wrote: [...] Thanks. But now I have an even more fundamental problem. I keep gettin

Re: This is probably trivial or impossible Code Introspection...

2015-09-19 Thread Ali Çehreli via Digitalmars-d-learn
On 09/19/2015 10:30 PM, H. S. Teoh via Digitalmars-d-learn wrote: On Sun, Sep 20, 2015 at 05:21:03AM +, WhatMeWorry via Digitalmars-d-learn wrote: [...] Thanks. But now I have an even more fundamental problem. I keep getting a FieldNameTuple is not defined. But I've clearly got the impor

Re: This is probably trivial or impossible Code Introspection...

2015-09-19 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Sep 20, 2015 at 05:21:03AM +, WhatMeWorry via Digitalmars-d-learn wrote: [...] > Thanks. But now I have an even more fundamental problem. I keep > getting a FieldNameTuple is not defined. But I've clearly got the > import statement. I even copied the example from Phobos verbatim: >

Re: This is probably trivial or impossible Code Introspection...

2015-09-19 Thread Ali Çehreli via Digitalmars-d-learn
On 09/19/2015 10:21 PM, WhatMeWorry wrote: On Saturday, 19 September 2015 at 19:54:45 UTC, Adam D. Ruppe wrote: On Saturday, 19 September 2015 at 19:52:56 UTC, WhatMeWorry wrote: So I've got type and value of each member, but I want their actual names? http://dlang.org/phobos/std_traits.html#

Re: This is probably trivial or impossible Code Introspection...

2015-09-19 Thread WhatMeWorry via Digitalmars-d-learn
On Saturday, 19 September 2015 at 19:54:45 UTC, Adam D. Ruppe wrote: On Saturday, 19 September 2015 at 19:52:56 UTC, WhatMeWorry wrote: So I've got type and value of each member, but I want their actual names? http://dlang.org/phobos/std_traits.html#FieldNameTuple You can also do something li

Re: This is probably trivial or impossible Code Introspection...

2015-09-19 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 19 September 2015 at 19:52:56 UTC, WhatMeWorry wrote: So I've got type and value of each member, but I want their actual names? http://dlang.org/phobos/std_traits.html#FieldNameTuple You can also do something like `foo.tupleof[idx]["foo.".length .. $]` for an individual thing but

This is probably trivial or impossible Code Introspection...

2015-09-19 Thread WhatMeWorry via Digitalmars-d-learn
given some struct: writeln("face.glyph.bitmap = ", face.glyph.bitmap); which displays the following: face.glyph.bitmap = FT_Bitmap(30, 25, 25, 4105948, 256, 2, 0, null) Is there a way for D to display the variable names within the FT_Bitmap? For instance, the following code snippet outpu