On Sun, 13 Oct 2002, Piers Cawley wrote: : I like that idea: : : class SomeClass { : method class_method ( Class $class : ... ) { ... } : method instance_method ( SomeClass $self : ... ) { ... } : method dont_care_method ( $self : ... ) { ... } : } : : Or will 'Class' actually be CLASS by analogy with HASH, ARRAY etc?
I'm not sure we're sticking with the all-uppercase built-in types. They're kind of ugly, and we keep running into boundary cases. So I think the built-in class types will start with an initial cap, and the built-in primitive types will be all lowercase. So a general polymorphic integer object is "Int", while a low-level, C-like integer is "int". (An array of "int" is guaranteed to be stored compactly, for instance.) And I suspect it would make some people happy to turn class UNIVERSAL into class Object. Larry