On 09.10.2014 21:46, Jacob Carlborg wrote:
On 2014-10-09 20:33, Rainer Schuetze wrote:

This is a gcc extension, which isn't supported under Windows by dmd.

It seems to be possible in Visual Studio [1], but that still leaves OMF.

[1]
http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc



Interesting. That would also be possible in D with the proposed pragma(data_seg). It still relies on the C++ startup code of the runtime, but dmc also has that (even for the VC++ section AFAICT).

Reply via email to