On 3/11/08, John Meacham
On Tue, Mar 11, 2008 at 08:17:43AM -0400, Samuel Bronson wrote:
On Mon, Mar 10, 2008 at 9:32 PM, John Meacham
wrote:
ClassAlias@.[Module].[AliasName].[method]
But how to tell where the alias name ends and the method name begins? The method name will need to be qualified, won't it?
You may need to do something like that.
In any case you should never parse existing names to pull out the info about it, you should just call 'classAliasDefaultName alias method' and use the result. As in, I never need to look at a name to find out it is an instance, I Just know that the result of 'instanceName' will be a valid existing name of the right type so I can refer to it directly.
The actual format of the name would never occur anywhere in code other than the 'classAliasDefaultName' function so it would be pretty easy to change later in any case.
Well, I wasn't planning to try and parse it, but I think your suggested way could lead to duplicates, regardless of whether you meant for the names to have been qualified or not (though in different ways in each case, of course, and if qualified these conflicts would be much less likely...)