New Traits

Jacob Carlborg doob at me.com
Mon May 14 23:35:42 PDT 2012


On 2012-05-15 01:13, John Maschmeyer wrote:
> I implemented some new traits that seemed to have a lot of
> interest recently.
>
> I've implemented parameterNames, isPublic, isPrivate,
> isProtected, isPackge, isExport, and codeof traits.
>
> parameterNames lets you get access to the names of function
> parameters
>
> isPublic, isPrivate, etc let you query access modifiers
>
> codeof was discussed recently in
> http://forum.dlang.org/thread/huyqfcoosgzfneswnrur@forum.dlang.org.
> It gives you access to the source code of functions, classes,
> etc.
>
> I'm pretty new to the dmd code, so could someone take a look at
> them?
>
> https://github.com/D-Programming-Language/dmd/pull/951
> https://github.com/D-Programming-Language/dmd/pull/952
> https://github.com/D-Programming-Language/dmd/pull/953

Wow, all these are awesome. Nice work.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list