import all except specified symbols: eg import std.stdio:!writeln,write;

timotheecour thelastmammoth at gmail.com
Sun Sep 9 16:33:17 PDT 2012


I'd like to have something like:
---
import std.stdio:!writeln,write;
---
which would import all symbols from std.stdio except the ones 
listed (writeln,write).

Use case:
The reason is to avoid writing verbose code (specifying all 
symbols to import except those 2), example when writing a module 
(eg overrides.stdio) which overrides just those 2 symbols (eg for 
logging to a file each call to write,writeln) but keeps the rest 
intact.

Is there a way or can that be implemented?


More information about the Digitalmars-d-learn mailing list