[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] Re: Handle, Rect, et al



In article <1dzqgif.ptvgtleer9p6M%kpreid@ibm.net>, kpreid@ibm.net (Kevin Reid) writes:
>> Something that has bugged me for awhile: we have all of these classes from
>> Matthias (God bless his soul :) called Handle, RGBColor, Pattern, Cursor,
>> Point, Rect, etc.  What happens if someone makes a module for CPAN called
>> Handle?  I know it would break existing code, and I know that it would be
>> somewhat hard to do, but I think that we should move to change all of these
>> class names.  Maybe just put a Mac:: in front of all of them.  That would
>> solve the problem, I think.

Sounds like a good idea.

> I would say put just Mac in front, e.g. "MacHandle"; this makes it
> consistent with MacWindow, MacControl, etc. and is easier to type.

Not sure about this. So far, my naming convention has been to use the Mac
prefix (without colons) for "smart" classes. I think Mac:: would be a more
consistent prefix.

> Also, perhaps leave in a backwards-compatibility component, e.g.:

Maybe make it available explicitly:

use Mac::OldNames;

Matthias

-- 
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
  "And that's why I am going to turn this world upside down, and make
   of it a fire so *bright* that someone real will notice"
                                -- Vernor Vinge, _Tatja Grimm's World_

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org