Welcome to Web-News
A Web-based News Reader
Subject Re: private declaration in module
From Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no>
Date Wed, 22 Sep 2004 16:45:25 +0200
Newsgroups digitalmars.D

novice wrote:
> Thanks to Sjoerd and Bastiaan!
>
> May be, my question cause is my bad english. At
> http://www.digitalmars.com/d/attribute.html
> "private" described as applied to "enclosed class" only,
> but my program has no classes.
>
>
>>Private means that only members of the enclosing class can access the member,
>>or members and functions in the same module as the enclosing class. Private
>>members cannot be overridden. Private module members are equivalent to static
>>declarations in C programs
>

It is not your english, that sentence is misleading. I think "enclosing
class" should read something like "enclosing class, enclosing template
or enclosing module, whatever comes first".

Bastiaan.

Recent messages in this thread
 
-# private declaration in module novice 22-Sep-2004 06:23 am
.|# Re: private declaration in module Sjoerd van Leent 22-Sep-2004 07:36 am
.-# Re: private declaration in module Bastiaan Veelo 22-Sep-2004 07:55 am
..-# Re: private declaration in module novice 22-Sep-2004 08:49 am
...|# Re: private declaration in module Andy Friesen 22-Sep-2004 09:23 am
...-# Re: private declaration in module (Current message) Bastiaan Veelo 22-Sep-2004 10:45 am
....\# Re: private declaration in module Ben Hinkle 22-Sep-2004 11:15 am