D import idiom compilation time

H. S. Teoh hsteoh at quickfur.ath.cx
Sat Jan 5 23:44:31 UTC 2019


On Sat, Jan 05, 2019 at 10:48:30PM +0000, Dgame via Digitalmars-d wrote:
[...]
> Output:
> 
> ----
> Hallo
> core.exception.AssertError at onlineapp.d(20): Symbol
> "thisFunctionDoesNotExist" not found in std.stdio
> ----------------
> ??:? _d_assert_msg [0x3c00dc54]
> onlineapp.d:20 pure nothrow @nogc @safe void
> onlineapp.FailedSymbol!("thisFunctionDoesNotExist",
> "std.stdio").FailedSymbol!(immutable(char)[]).FailedSymbol(immutable(char)[])
> [0x3c00ceac]
> onlineapp.d:52 _Dmain [0x3c00c8c3]
> ----

Impressive!  Though we pretty much had to bring out the nuclear warhead
to get here. :-D  By this point I wonder if it has already made the
original reason for doing this moot compared to just directly importing
the symbol! :-P


T

-- 
They pretend to pay us, and we pretend to work. -- Russian saying


More information about the Digitalmars-d mailing list