Re: case sensitivity
Andrew Sutherland <[email protected]> 02 Mar 2003 20:59:37 -0500
| Newsgroups | gmane.comp.lang.goo.general |
|---|---|
| Message-ID | <[email protected]> |
Prefixing sounds good to me. SWIG has a special event just for constants, so the hack to make the generated Goo name have a $ in front is trivial. Hopefully the pathological cases you mention would never come up, but in such a case, perhaps the older versions are deprecated and therefore not included as part of the interface exposed to Goo? Andrew Rob Myers <[email protected]> writes: > On Friday, February 28, 2003, at 11:37 PM, Jonathan Bachrach wrote: > > > anybody else have opinions on this? > > Can't Goo just prefix constants with $? That would solve the problem > of C library writers using different capitalization schemes as > different namespaces for functions and constants. > > There's a related problem this doesn't fix. As examples: in the MacOS > "Carbon" libraries, there are a couple of macros which use different > capitalizations to denote different versions. And the old "Toolbox" > code had different capitalizations of the same names to denote > by-value and by-reference versions of methods that worked on structs. > > This is bad practice, though, as it's confusing and introduces > potential for errors. IMVHO, whatever is decided, bad practice from > thirty-year-old programming languages is a problem for wrapper > generators rather than new programming languages. > > - Rob.