From: Ray Z. <rz...@co...> - 2002-10-05 12:07:39
|
At 5:43 PM -0400 10/3/02, Chris Winters wrote: >Shoot, while we're changing it why don't we just make it an object: > > my $type_info = $spops_class->db_discover_types; > my $dbi_type = $type_info->get_type( $field ); > >That would probably be the simplest and most explicit thing -- it's >obvious what it does, and in the implementation 'get_type' wouldn't care >what case $field was in. I don't think there'd be much more overhead >than now, since we only keep one copy of the type information around >anyway. > >What do you think? Yeah, probably the best option. -- Ray Zimmerman / e-mail: rz...@co... / 428-B Phillips Hall Sr Research / phone: (607) 255-9645 / Cornell University Associate / FAX: (815) 377-3932 / Ithaca, NY 14853 |