[phobos] expand for std.metastrings
kenji hara
k.hara.pg at gmail.com
Thu Nov 4 02:38:08 PDT 2010
I supported your suggestion.
https://github.com/9rnsr/scrap/blob/master/expand/expand.d
Now, ${Type} is expanded to Type.stringof.
see unittest in https://github.com/9rnsr/scrap/blob/master/expand/expand_utest.d
Kenji
2010/11/4 Robert Jacques <sandford at jhu.edu>:
> On Thu, 04 Nov 2010 01:04:46 -0400, kenji hara <k.hara.pg at gmail.com> wrote:
>>>
>>> P.S. Does expansion of types work? i.e. q{$int} == "int".
>>
>> It does not, but can use ${int.stringof}.
>>
>
> Can I request that support for types be added? T.stringof is by far the most
> common escape in my mixin strings.
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>
More information about the phobos
mailing list