Questions about D
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu May 22 15:06:08 PDT 2008
"Bill Baxter" <dnewsgroup at billbaxter.com> wrote in message
news:g14nq9$dgq$1 at digitalmars.com...
>
> In C++ you can put things in an anonymous namespace:
>
> namespace {
> int variable_only_i_can_see;
> double function_only_i_can_call() { return (double)rand()/RAND_MAX; }
> }
>
> In C you could use "static":
>
> static int only_i_can_see;
>
> In D I'm not sure if there is any such thing.
Uh, 'private'?
More information about the Digitalmars-d-learn
mailing list