C style 'static' functions

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 19 05:16:49 PDT 2017


On Wednesday, 19 July 2017 at 12:11:38 UTC, John Burton wrote:
> On Wednesday, 19 July 2017 at 12:05:09 UTC, Kagamin wrote:
>> Try a newer compiler, this was fixed recently.
>
> Hmm it turns out this machine has 2.0.65 on which is fairly 
> ancient. I'd not realized this machine had not been updated.
>
> Sorry for wasting everyones' time if that's so, and thanks for 
> the help.

Just for the record, private is the analog of C's static. All 
private free and member functions are callable only from the 
module they are defined in. This is in contrast with C++, Java, 
C# where private members are visible only the class they are 
defined in.


More information about the Digitalmars-d-learn mailing list