I have been thinking about namespaces in as and have realized that they can be considered a solution to the same problem that friends solve in c++.

I wonder which solution is the best.

Namespaces are defined once and can be used by multiple files, while friends needs to be listed fully for each class.

Namespaces are like passwords and friends are like access lists.

Yet namespaces are also like groups.

Insight anyone?
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to