> Cool. B&D finally comes to perl (in an option, only if you like that > sort of thing way :)) > The name sucks, though. Unfortunately I have no ideas for a better one. > Perhaps Type::something or Typed::something. > Hmm, think I like Typed::vars or Typed::Vars. At the moment I'm planning to rename it Class::TypedVars, so as not to create a new top-level namespace. Though I confess that: use B'n'D; has a certain appeal (and is even in an existing CPAN namespace ;-) > 'classify' would then need to be renamed to 'type'. > Could type be polymorphic enough to perform both functions? It *could* (i.e. it could check whether its first argument is an lvalue), but I think it's better to preserve a syntactic distinction to mirror the semantic distinction. Upon further reflection, C<classify> might be better named C<restrict>: restrict my $obj => 'MyClass'; DamianThread Previous | Thread Next