what's the general way of separating classes?
John Salerno
johnjsal at NOSPAMgmail.com
Tue Mar 21 09:52:45 EST 2006
Ben Cartwright wrote:
> Er? Surely you've used C#'s "using" statement?
Well yes, but really that's very different. 'Using' statements are
solely for the purpose of convenience so you don't have to qualify
classes with namespaces. They aren't necessary to actually *use* those
classes.
(The true 'include' functionality comes in the References, which are
shared across all files on account of them being compiled together.)
>> You can just refer to the classes from
>> any other file.
>
> Iff they're in the same namespace. You can have multiple namespaces in
> the same .NET assembly, you know.
Yes, true. I was just thinking of a program all contained in one namespace.
More information about the Python-list
mailing list