Re: [the great right-tool-for-the-job debate] Re: Running Subroutines from Other Scripts
Re: [the great right-tool-for-the-job debate] Re: Running Subroutines from Other Scripts
- Subject: Re: [the great right-tool-for-the-job debate] Re: Running Subroutines from Other Scripts
- From: Philip Aker <email@hidden>
- Date: Mon, 26 Aug 2002 19:08:57 -0700
Steven Angier postulates:
Namespaces aren't always convenient or appropriate. Imagine if C-based
languages made us refer to ALL of its libraries in their own
namespaces:
stdio.printf("Hello world from the stdio.h namstpace!\n");
I've never seen this form of namespace referral in C++. I think you
might be using some kind of Java-ism.
In addition it's possible to have an indicator at any place in a file
to cue the namespace:
using namespace std
I find namespaces very handy where there may be mixed C/C++ code coming
in from different libraries and one has to distinguish between a custom
implementation and a standard library one. In addition, if you peruse
the Carbon list archives, you will be able to see that it's very common
in C++ code to prepend the global namespace signifier to Apple APIs.
::ExitToShell();
They are available in Tcl/Tk as well and becoming increasingly popular
for non-trivial applications (they were only introduced a few years
ago).
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.