"Export" logic does not work on variables
Benjamin Thaut
code at benjamin-thaut.de
Sun Aug 25 08:12:36 PDT 2013
Am 25.08.2013 15:51, schrieb Jacob Carlborg:
> On 2013-08-25 14:17, Benjamin Thaut wrote:
>
>> export __gshared int bar; // this treated as import
>
> I would have guessed that required extern as well to be import.
>
But as D does not have a Preprocessor and version statements can not be
used to replace the usual API macros used in C/C++ we need export to
work in a way so that it means both import and export at the same time.
--
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d
mailing list