ShellExecute

Sergey Gromov snake.scaly at gmail.com
Tue Feb 12 10:00:28 PST 2008


doob <doobnet at gmail.com> wrote:
> Sergey Gromov wrote:
> > This reminds me: why all the standard D headers declare Windows 
> > functions as
> > 
> > extern(Windows) export void SomeApiFunction() ?
> > 
> > What's the use for export attribute ?
> > 
> 
>  From the language specification: "Export means that any code outside 
> the executable can access the member. Export is analogous to exporting 
> definitions from a DLL."
> 
> Tango doesn't use export with win api functions

Thanks.  I did know what the specs were saying, I was just wondering if 
I missed something.  I also know that it does work without `export'---
because I've tried.  Is it a left-over from an earlier versions of the 
language ?  The example-driven programmers keep copying this code 
around, making it sort of common practice...

-- 
SnakE


More information about the Digitalmars-d-learn mailing list