On Thu, Oct 25, 2001 at 11:30:00AM +1000, Damian Conway wrote: > > Glenn wrote: > > > > Have I missed anything? > > > > Perhaps you've missed one thing. > > > > [snip] > > > > Perl 6 could provide a pragma to produce a warning on the first > > run-time auto-numerification (compile time would be really hard to > > do), together with a selection of different string numerification > > methods for extracting the numeric values, for a variety of types > > of numeric values. > > I believe this would be covered by the ability to lexically redefine > C<operator:+($)>.
Hmm... this seems dangerous. In general a "numeric context" was imposed in Perl5 by the function that needed it by calling SvNV. The overhead that I see from externalizing that, and forcing: $x + $y To implicitly be: +($x) + +($y) is rather large (three times the stack management, type checking, etc).... Is this really what we want? -- Aaron Sherman [EMAIL PROTECTED] finger [EMAIL PROTECTED] for GPG info. Fingerprint: www.ajs.com/~ajs 6DC1 F67A B9FB 2FBA D04C 619E FC35 5713 2676 CEAF "Write your letters in the sand for the day I'll take your hand In the land that our grandchildren knew." -Queen/_'39_