TypeInfoEx and Variant: suggestions?

Steven Schveighoffer schveiguy at yahoo.com
Fri Apr 17 04:17:59 PDT 2009


On Fri, 17 Apr 2009 07:11:33 -0400, Daniel Keep  
<daniel.keep.lists at gmail.com> wrote:

>
>
> Steven Schveighoffer wrote:
>> On Thu, 16 Apr 2009 21:37:29 -0400, Daniel Keep
>> <daniel.keep.lists at gmail.com> wrote:
>>
>>> On a side note, I'm working on getting Tango's Layout to understand
>>> Variants and do the "proper" stringification.  Still trying to work out
>>> how to get the changes to compile without having to rebuild Tango...
>>> *grumble*
>>
>>
>> Have you tried building your test app with your modified Tango file
>> specifically?  That generally works for me:
>>
>> dmd variantTest.d ~/d/include/d/tango/core/Variant.d
>>
>> -Steve
>
> That works for Variant, but it doesn't seem to work with Layout.  It
> compiles and runs, but it doesn't seem to actually use the code I give  
> it.

I think I ran into this before.  I think it's because Layout is a  
template, and is compiled when it is used, not when the module is  
compiled.  You have to recompile the user of Layout as well (i.e.  
Stdout.d, and probably Print.d).

-Steve



More information about the Digitalmars-d mailing list