#271 Internal?

tactics Thu 3 Jul 2008

I came across the internal keyword. Looking it up in the docs, it's not clear what it actually does:

# internal: only types within the declaring can access the slot

Does that mean in the declaring Pod or something like that? It looks like it might have been a typo.

andy Thu 3 Jul 2008

internal comes from C# - and yeah, thats a typo - it means internal to the declaring Pod.

jodastephen Sat 5 Jul 2008

Perhaps since it is non-obvious a rename should be considered? Maybe pod would be a better name for the scope. Or module (based on Java 7 keyword).

tompalmer Sat 5 Jul 2008

I think internal is best. Not only does C# use it, but it is also planned for ECMAScript 4 (and already in use today in ActionScript). I'd go so far as to argue that it's the "de facto standard" keyword for this concept.

tactics Sat 5 Jul 2008

Internal is good, because it's an adjective (pod and module are nouns).

Internal also makes perfect sense once the documentation is updated.

Login or Signup to reply.