RE: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-11 Thread chromatic
On Fri, 10 Jan 2003 14:12:12 +, Thom Boyer wrote:

> 'Course, then I've gotta explain why
>   $x = 7 ~> 63;
> doesn't evaluate to 9

Surely because you haven't yet overloaded gozinta for the Number class!

-- c



Re: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-11 Thread David Wheeler

On Friday, January 10, 2003, at 09:56  PM, Damian Conway wrote:


 Just out of curiosity, how did you measure that? ;-)


Well, obviously, I used the Symbol::Readability module:

	module Symbol::Readability;

	sub delta_r(Str $a, Str $a) returns Int is exported {
	return sum [»ord«split//,$x] »-« [»ord«split//,$y]
	}

and then:

	#! /usr/bin/perl6

	use Symbol::Readability;

	print delta_r('~>','|>');

How else?


Hrm. What was the output?

=)

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]