C style 'static' functions
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 19 00:51:11 PDT 2017
On Wednesday, 19 July 2017 at 07:22:48 UTC, John Burton wrote:
> In C++ I could use static or an anonymous namespace for
> implementation functions, but there doesn't seem to be anything
> similar in D.
> Is there any way to achieve what I want in D (Private
> implementation functions)
Try the package keyword:
https://dlang.org/spec/attribute.html#visibility_attributes
More information about the Digitalmars-d-learn
mailing list