QUOTED_MESSAGE: > On Fri, 18 May 2001, Mike Depot wrote: [SNIP] > > Would you object to Imager::Color accepting both type > of interface? > > We only get the problem of distinguishing > between: > > $c = Imager::Color->new(red=>100, > green=>0, blue=>255, alpha=>128); > > and: > > $c = Imager::Color->new('red'); # lookup > in /usr/X11R6/lib/X11/rgb.txt? > > though this shouldn't be a big deal (if we ever happen > to support the second interface). > > We could distinuguish between the 2 by requiring the > '-', but then we'd have to rework all the existing named > parameter code for consistency. > > In any case I can't see it going into 0.38, since the > idea at the moment is to get a stable CPAN release out, and > then start fiddling again. > > Whether it goes in at all is of course up to > Addi. > [SNIP] > > The existing interface is used in the version currently > on CPAN, this isn't really a valid argument. > > Future additions to the interface are likely to use > named parameters. > > Tony
EKKI skrifa neitt hér:
© 2000-2002 Bjarni R. Einarsson / fyrirspurnir / skilmálar / þakkir /