Static function at module level
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 17 22:29:26 PDT 2014
On Mon, 18 Aug 2014 01:32:40 +0000
Phil Lavoie via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:
> Ok, so after years of D usage I just noticed that this is valid D
> (compiles anyways):
>
> static void myFunc() {}
>
> What is a static function at module level exactly? In C, that
> means private, in D, that means ___________?
I'm pretty sure that it means nothing. It's just one of those cases where an
attribute is ignored, because it doesn't apply rather than resulting in an
error.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list