Dude! Where's my string constant?
kris
foo at bar.com
Tue Jan 23 18:06:52 PST 2007
Frits van Bommel wrote:
> kris wrote:
>
>> Frits van Bommel wrote:
>>
>>> kris wrote:
>>
>> [snip]
>>
>>>> However, going to these lengths is surely counter-intuitive?
>>>
>>>
>>>
>>> Yes it is. What happens for the second one when instantiated should
>>> really happen by default for all strings (i.e. be put into separate
>>> sections).
>>
>>
>> Indeed; along with init-data for structs and so on. That would resolve
>> the currently issue with the Win32 header bloat
>
>
> Hmm... Not only would it fix the bloat, I think it would also remove the
> requirement to even link to the compiled headers. The only reason that
> was needed were struct initializers, right? (enums are used for constants?)
Yep; that is how I understand it. But was hoping Walter would care to
elaborate carefully in a reply to this very question posted earlier, in
the related Win32 thread?
BTW: this is how the POINT p = void; syntax manages to sneak under the
linker radar -- there's no init_data needed for such decls
More information about the Digitalmars-d
mailing list