Library linking (request)
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Feb 27 19:55:54 PST 2006
"Jeremy" <Jeremy_member at pathlink.com> wrote in message
news:du0gvn$98o$1 at digitaldaemon.com...
> Merge all that functionality into one keyword -- for example, you
> shouldn't have
> to tell the compiler anything more than 'I want to use this external
> source'.
> One line would tell the compiler you want to link/import a file, and that
> all
> symbols are to be loaded from that library that are referenced in the
> program.
> You might want to deprecate the current 'import', 'extern' and 'pragma'
> (pragma
> probably has other uses?) for an all-in-one 'reference' keyword that would
> work
> something like:
>
> reference "alleg40.dll"
> reference "gameclasses.d"
> reference "libusb.a"
> reference "phobos.lib"
>
> The library type could be extracted by the file extension. That just looks
> awesome :) You have to agree... :)
That would be great. Although, why not just keep import?
import std.string;
import "alleg40.dll";
And yes, pragma does have other uses (it's a general-purpose compiler
directive statement).
More information about the Digitalmars-d
mailing list