[perl #39597] Problems with string constants in method calls

2006-06-23 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #39597] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=39597 > The following code in lines 108-110 of languages/tcl/src/class/ tclcommand.pir are g

Re: State of Perl6 Backends

2006-06-23 Thread Swaroop C H
The "main" backend as I see it, in the near future, is definitely the Perl 5 runtime for production use Codegen to that runtime is probably going to be written in Perl 5 in Pugs::Compiler::Perl6 space, although it may also happen at Perl 6 space, Parrot space, or Haskell space. (The author-s

Re: Mutil Method Questions

2006-06-23 Thread Steffen Schwigon
"Chris Yocum" <[EMAIL PROTECTED]> writes: > Hi All, > At the risk of sounding a bit thick, I have a couple of questions > about Perl6's multi keyword and mutilmethod in general. This seems > like overloaded functions from C++ so why do we need a key word to > declare them rather than using so

Re: Mutil Method Questions

2006-06-23 Thread Steffen Schwigon
Steffen Schwigon <[EMAIL PROTECTED]> writes: > multi sub talk () { say 'Loose Talk Is Noose Talk.'; } > multi sub talk (String $msg) { say $msg; } > multi sub talk (String $msg, Int $times) { say $msg x $times; } BTW, because we are just on-topic, can someone explain, when these types above

Re: Mutil Method Questions

2006-06-23 Thread Daniel Hulme
> Multimethods are not just overloading as in C++. To expand upon this point a little, you can use multimethods to do pattern-matching in the style of ML and similar languages. So, to pinch an example from the pugs tree (examples/functional/fp.p6) multi sub length () returns Int { 0

[svn:perl6-synopsis] r9717 - doc/trunk/design/syn

2006-06-23 Thread audreyt
Author: audreyt Date: Fri Jun 23 07:55:16 2006 New Revision: 9717 Modified: doc/trunk/design/syn/S06.pod Log: * S06: Correct an extra comma in the comment: for @foo, sub { ... } should be written as for @foo sub { ... } if the sub is to be taken as the loop body. Modified: doc/tru

Re: Mutil Method Questions

2006-06-23 Thread Markus Laire
On 6/23/06, Steffen Schwigon <[EMAIL PROTECTED]> wrote: Steffen Schwigon <[EMAIL PROTECTED]> writes: > multi sub talk () { say 'Loose Talk Is Noose Talk.'; } > multi sub talk (String $msg) { say $msg; } > multi sub talk (String $msg, Int $times) { say $msg x $times; } BTW, because we are j

Re: Mutil Method Questions

2006-06-23 Thread Jonathan Scott Duff
On Fri, Jun 23, 2006 at 06:18:51PM +0300, Markus Laire wrote: > multi sub talk (String $msg1, String $msg2) { say "$msg1 $msg2" } > multi sub talk (String $msg, Int $times) { say $msg x $times; } > multi sub talk (String $msg, Num $times) { say "Please use an integer"; } > multi sub talk (String $m

Re: Mutil Method Questions

2006-06-23 Thread Markus Laire
On 6/23/06, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: An alternate interpretation would be that the last one is actually a compile- time error because none of the sigs match (Int,Int) and for a call to work with 2 Int parameters, you'd need to be explicit: talk(~123,3); But I'm not sure wh

lexical lookup and OUTER::

2006-06-23 Thread jerry gay
audreyt++ pointed out on #parrot that there doesn't seem to be a way to specify where to start finding lexicals, in support of perl's OUTER::. eg. (from S04): my $x = $OUTER::x; or my $x = OUTER::<$x>; i propose this should be specified using a three-arg form of find_lex where the third

[perl #39615] [TODO] get_outer op not defined in PDDs

2006-06-23 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #39615] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=39615 > tests exist for the get_outer op in t/op/lexicals.t, but i find no mention of the op in do

Re: State of Perl 6 Backends

2006-06-23 Thread chromatic
On Friday 23 June 2006 00:04, Swaroop C H wrote: > So, as of now, you envision svn:/pugs/misc/pX/Common/Pugs-Compiler-Perl6 to > be the "main" engine for Perl 6 ? I believe Audrey's point was that it is the most complete implementation right now. > If this is the case, is the purpose of the oth

Re: Mutil Method Questions

2006-06-23 Thread Chris Yocum
Hi All, I would like to thank everyone for their illuminating examples and prose. This has cleared up understanding for me. Thanks again, Chris On 6/23/06, Markus Laire <[EMAIL PROTECTED]> wrote: On 6/23/06, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: > An alternate interpretation would

Re: Mutil Method Questions

2006-06-23 Thread Jonathan Scott Duff
On Fri, Jun 23, 2006 at 06:55:28PM +0300, Markus Laire wrote: > On 6/23/06, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: > >An alternate interpretation would be that the last one is actually a > >compile- > >time error because none of the sigs match (Int,Int) and for a call to > >work with 2 Int

Re: Mutil Method Questions

2006-06-23 Thread Thomas Wittek
Steffen Schwigon schrieb: > At least the many keywords seem to be necessary to map the complexity > of different paradigms possible in Perl6. Multimethods are not just > overloading as in C++. Second, the different keywords declare > different behaviour you can choose. Just read S06, it's explained

Can foo("123") dispatch to foo(Int) (was: Mutil Method Questions)

2006-06-23 Thread Markus Laire
I'm sending this also to perl6-language, in case someone there knows an answer to this. On 6/23/06, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: I don't think so. I think the "best candidate" prose is about choosing from types that have been specified, not autoconverting between types such tha

Re: Can foo("123") dispatch to foo(Int) (was: Mutil Method Questions)

2006-06-23 Thread Jonathan Scott Duff
On Fri, Jun 23, 2006 at 09:11:44PM +0300, Markus Laire wrote: > And what about other types? > e.g. if String can't ever be "best candidate" for Int, then does that > mean that neither can Int ever be "best candidate" for Num, because > they are different types? Well, I think Num and Int *aren't* d

Re: State of Perl 6 Backends

2006-06-23 Thread Audrey Tang
在 2006/6/23 上午 9:50 時,chromatic 寫到: On Friday 23 June 2006 00:04, Swaroop C H wrote: So, as of now, you envision svn:/pugs/misc/pX/Common/Pugs-Compiler- Perl6 to be the "main" engine for Perl 6 ? I believe Audrey's point was that it is the most complete implementation right now. No, t

Re: State of Perl 6 Backends

2006-06-23 Thread chromatic
On Friday 23 June 2006 12:19, Audrey Tang wrote: > Multiple implementations that are compatible to the spec, like the   > R5RS Scheme, are really a very good thing. Only insofar as the spec is complete enough that an implementation that adds nothing beyond that is useful and that there exists so

Docathon (was Re: State of Perl 6 Backends)

2006-06-23 Thread Uri Guttman
> "AT" == Audrey Tang <[EMAIL PROTECTED]> writes: AT> Indeed. So instead of having the implementions define the language, AT> this time around the specs, and tests, and API documentations, need AT> to be adhered closely by implementors, which is why we're all talking AT> together in #

Re: lexical lookup and OUTER::

2006-06-23 Thread Chip Salzenberg
On Fri, Jun 23, 2006 at 08:27:04AM -0700, jerry gay wrote: > audreyt++ pointed out on #parrot that there doesn't seem to be a way > to specify where to start finding lexicals, in support of perl's > OUTER::. eg. (from S04): >my $x = $OUTER::x; > or >my $x = OUTER::<$x>; So OUTER:: is a -st

Re: lexical lookup and OUTER::

2006-06-23 Thread jerry gay
On 6/23/06, Chip Salzenberg <[EMAIL PROTECTED]> wrote: On Fri, Jun 23, 2006 at 08:27:04AM -0700, jerry gay wrote: > audreyt++ pointed out on #parrot that there doesn't seem to be a way > to specify where to start finding lexicals, in support of perl's > OUTER::. eg. (from S04): >my $x = $OUTE

Re: lexical lookup and OUTER::

2006-06-23 Thread jerry gay
On 6/23/06, jerry gay <[EMAIL PROTECTED]> wrote: indeed. my $x = 3; { { say $OUTER::x} }# 3 of course that should be my $x = 3; { { say $OUTER::OUTER::x} }# 3

Re: lexical lookup and OUTER::

2006-06-23 Thread Patrick R. Michaud
On Fri, Jun 23, 2006 at 01:16:22PM -0700, Chip Salzenberg wrote: > On Fri, Jun 23, 2006 at 08:27:04AM -0700, jerry gay wrote: > > audreyt++ pointed out on #parrot that there doesn't seem to be a way > > to specify where to start finding lexicals, in support of perl's > > OUTER::. eg. (from S04): >

Re: lexical lookup and OUTER::

2006-06-23 Thread Matt Diephouse
jerry gay <[EMAIL PROTECTED]> wrote: audreyt++ pointed out on #parrot that there doesn't seem to be a way to specify where to start finding lexicals, in support of perl's OUTER::. eg. (from S04): my $x = $OUTER::x; or my $x = OUTER::<$x>; i propose this should be specified using a thr

Re: lexical lookup and OUTER::

2006-06-23 Thread Audrey Tang
在 2006/6/23 下午 1:31 時,Patrick R. Michaud 寫到: I interpret the first sentence as meaning that the "MY" pseudo-package refers to all of the symbols in the current lexical scope, not just those that have been explicitly declared in the current scope using "my". Same interpretation here, as S02 say

Re: Perl6 without GHC or Parrot?

2006-06-23 Thread Audrey Tang
在 2006/6/22 下午 12:37 時,Andy Dougherty 寫到: One other oddity: You can't run the test file twice without cleaning up the generated .tc files first. Specifically: $ perl -Ilib 01-sanity/01-tap.t [ works ] $ perl -Ilib 01-sanity/01-tap.t Unmatched right curly bracket at 01-sani

Re: [perl #39597] Problems with string constants in method calls

2006-06-23 Thread Matt Diephouse
via RT Matt Diephouse <[EMAIL PROTECTED]> wrote: # New Ticket Created by Matt Diephouse # Please include the string: [perl #39597] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=39597 > The following code in lines 108-110