logoalt Hacker News

brabellast Sunday at 6:04 PM1 replyview on HN

I think this is not equivalent because in D, this imports all symbols in the package `std` while in Zig, you just get a "struct" called `std`. I think the equivalent D is:

    import std=std;

Replies

WalterBrightlast Monday at 3:14 AM

What I wrote is equivalent to the zig declaration. Google says:

    const my_module = @import("my_module.zig");

    This allows you to access pub (public) declarations from my_module.zig through the my_module identifier.
show 1 reply