Import improvement
Simen Kjaeraas
simen.kjaras at gmail.com
Mon Oct 15 12:13:02 PDT 2012
On 2012-10-15, 19:13, Jacob Carlborg wrote:
> Shouldn't it be possible to create a mixin that does this?
>
> mixin require("std", "xml", "string");
>
> Something like that. But you would still need to import the "require"
> function.
Put it in object.d, then.
Still, I feel the language already has the required sugar in that one
may import a list of modules.
--
Simen
More information about the Digitalmars-d
mailing list