Re: String Theory

2005-03-19 Thread Rod Adams
Larry Wall wrote: You've more or less described the semantics available at the "use bytes" level, which basically comes down to a pure OO approach where the user has to be aware of all the types (to the extent that OO doesn't hide that). It's one approach to polymorphism, but I think it shortchang

[Pugs] END blocks not being executed after die

2005-03-19 Thread Andrew Savige
As shown below, END blocks in Pugs are behaving differently to p5; i.e. the Pugs END block is not being executed after die is called. I expect this is known and a TODO but I thought I'd better report it just in case. # cat f.p6 print "one\n"; die "dying"; print "two\n"; END { print "in end block

Re: String Theory

2005-03-19 Thread Larry Wall
On Sat, Mar 19, 2005 at 05:07:49PM -0600, Rod Adams wrote: : I propose that we make a few decisions about strings in Perl. I've read : all the synopses, several list threads on the topic, and a few web : guides to Unicode. I've also thought a lot about how to cleanly define : all the string related

[CVS ci] builtins

2005-03-19 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Sat, 19 Mar 2005 17:19:49 +0100 . . . 2) these methods can be called in various ways: Px = cos Py # opcode syntax cos Px, Py # same Px = "cos"(Py) # function call

Re: String Theory

2005-03-19 Thread Rod Adams
It's been pointed out to me that A12 mentions: Coercions to other classes can also be defined: multi sub *coerce:as (Us $us, Them ::to) { to.transmogrify($us) } Such coercions allow both explicit conversion: $them = $us as Them; as well as implicit conversions: my Them $them = $us; I read

String Theory

2005-03-19 Thread Rod Adams
I propose that we make a few decisions about strings in Perl. I've read all the synopses, several list threads on the topic, and a few web guides to Unicode. I've also thought a lot about how to cleanly define all the string related functions that we expect Perl to have in the face of all this expa

Re: Fwd: [ANN: WWW::Agent 0.03 has entered CPAN: rho@bigpond.net.au]

2005-03-19 Thread Mark Stosberg
On 2005-03-19, Andy Lester <[EMAIL PROTECTED]> wrote: > > login: { # block to define > how to log in >url m|https?://james.bond.edu.au/.*| or die "there is nothing to > log in here" > and fill uid $username

Re: darcs patch: typo fix

2005-03-19 Thread Autrijus Tang
Thanks, applied. /Autrijus/ pgpL4svnAYVcs.pgp Description: PGP signature

[perl #34501] Segfault in stress test

2005-03-19 Thread via RT
# New Ticket Created by Nick Glencross # Please include the string: [perl #34501] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34501 > --- osname= linux osvers= 2.6.8-gentoo-r3 arch= i686-linux cc= gcc 3.3.4 200406

darcs patch: typo fix

2005-03-19 Thread Mark Stosberg
Sat Mar 19 16:23:21 EST 2005 Mark Stosberg <[EMAIL PROTECTED]> * typo fix New patches: [typo fix Mark Stosberg <[EMAIL PROTECTED]>**20050319212321] < > { hunk ./ext/Pugs-Documentation/perlkwidspec.kwid 272 be ample room for people to make out-of-band hacks for specific output formats. -On

Fwd: [ANN: WWW::Agent 0.03 has entered CPAN: rho@bigpond.net.au]

2005-03-19 Thread Andy Lester
Some interesting ideas here... Date: Sun, 20 Mar 2005 07:11:11 +1000 From: Robert Barta <[EMAIL PROTECTED]> To: libwww@perl.org Hi all, I have put WWW::Agent onto CPAN. http://search.cpan.org/~drrho/WWW-Agent/ We will use it here to base on it functionality given in WWW::Mechanize, WWW::Ro

Yet Another Perl Conference, North America, 2005 Registration now open

2005-03-19 Thread glim
--> Yet Another Perl Conference, North America, 2005 Registration now open. Conference dates: Monday - Wednesday 27 - 29 June 2005 Location: 89 Chestnut Street http://89chestnut.com/ University of Toronto Toronto, Ontario, Canada

Re: Precedence of "where" ("of", "is", "will")?

2005-03-19 Thread Larry Wall
On Fri, Mar 18, 2005 at 09:36:49PM -0500, Chip Salzenberg wrote: : Nobody on #perl6 today could answer this one. Is: : Str | Int where { $_ } : the same as: : (Str | Int) where { $_ } : or: : Str | (Int where { $_ }) : ? "where" binds looser than |, but it's a member of a select group

Re: Best way to slurp a file in Perl 6

2005-03-19 Thread Larry Wall
On Sat, Mar 19, 2005 at 11:03:40PM +1100, Andrew Savige wrote: : --- Autrijus Tang wrote: : > On Fri, Mar 18, 2005 at 09:35:59PM +1100, Andrew Savige wrote: : > > What is the best way in Perl6/Pugs to slurp a file? : > : > You use the slurp() primitive, implemented as r875. :) : : Thanks. I teste

Re: [Pugs] Stumbled into another Pugs sand trap (indirect object call I think)

2005-03-19 Thread Larry Wall
On Fri, Mar 18, 2005 at 04:06:21PM -0700, Luke Palmer wrote: : Larry Wall writes: : > %::{'&infix:'}, I suspect. : : I suspect that's a bad idea. What about &infix:{'<'}? Well, one could go with &infix:«<» in that case, but yes, one could always construct an operator that violates all the standa

[CVS ci] builtins

2005-03-19 Thread Leopold Toetsch
1) builtin methods are living in a class namespace e.g. Float."cos" ParrotIO."open" # unimplemented 2) these methods can be called in various ways: Px = cos Py # opcode syntax cos Px, Py # same Px = "cos"(Py) # function call Px = Py."cos

Re: Best way to slurp a file in Perl 6

2005-03-19 Thread Andrew Savige
--- Autrijus Tang wrote: > On Fri, Mar 18, 2005 at 09:35:59PM +1100, Andrew Savige wrote: > > What is the best way in Perl6/Pugs to slurp a file? > > You use the slurp() primitive, implemented as r875. :) Thanks. I tested these two forms and it's truly lovely: my $x = slurp($fname) err die("slur

Re: .method == $self.method or $_.method?

2005-03-19 Thread Nigel Hamilton
On Thu, Mar 17, 2005 at 03:59:43PM -0800, Michael G Schwern wrote: : What it doesn't solve is the $.method vs .method issue. They look similar : but one works on the invocant and one works on $_. Still a trap. Yes, and that's probably the killer of the "oc" idea. So much for Sleep Brain, heh,

Re: Precedence of "where" ("of", "is", "will")?

2005-03-19 Thread Luke Palmer
Chip Salzenberg writes: > Nobody on #perl6 today could answer this one. Is: > Str | Int where { $_ } > the same as: > (Str | Int) where { $_ } I think it's this one. The junctive operators naturally feel pretty tight precedence, and named operators feel loose. > or: > Str | (Int wh

Precedence of "where" ("of", "is", "will")?

2005-03-19 Thread Chip Salzenberg
Nobody on #perl6 today could answer this one. Is: Str | Int where { $_ } the same as: (Str | Int) where { $_ } or: Str | (Int where { $_ }) ? Followup questions, Mr. President: What kind of operators are "where", "of", "is", and "will"? Is there a reason that S03 doesn't list them? W

Re: .method == $self.method or $_.method?

2005-03-19 Thread Markus Laire
Larry Wall kirjoitti: On Thu, Mar 17, 2005 at 03:59:43PM -0800, Michael G Schwern wrote: : What it doesn't solve is the $.method vs .method issue. They look similar : but one works on the invocant and one works on $_. Still a trap. Yes, and that's probably the killer of the "oc" idea. So much fo