Re: [svn:parrot] r30123 - in trunk: src src/ops src/pmc t/op

2008-08-08 Thread chromatic
On Thursday 07 August 2008 23:50:54 [EMAIL PROTECTED] wrote: Add a return continuation attribute to the Exception pmc and fill it in the throw opcode. Modified: trunk/src/ops/core.ops === === --- trunk/src/ops/core.ops   

Re: windows XP copyfile

2008-08-08 Thread John M. Dlugosz
Seek the wisdom of the Perl Monks at www.perlmonks.org. Short answer: http://perldoc.perl.org/functions/-X.html -M gives the file age. --John Tara taralish-at-yahoo.com |Perl 6| wrote: I'm trying to do a Perl script (PC has Perl5 installed) in a BAT file which will open the CMD prompt,

Re: new article, A Romp Through Infinity

2008-08-08 Thread John M. Dlugosz
Xavier Noria fxn-at-hashref.com |Perl 6| wrote: IMO to include something related to infinity you need to stick with some particular model and forget the rest. I couldn't have said it any better.

Re: new article, A Romp Through Infinity

2008-08-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: Could we get confirmation for that from @Larry. I remember $Larry mentioning that Num fails over to Rat or so when necessary. IOW, does my Rat $rat = 1/3; # assuming infix:/ returns a Rat my Num $num = 1/3; my Rat $diff = abs($rat -

Re: new article, A Romp Through Infinity

2008-08-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: HaloO, [EMAIL PROTECTED] wrote: Let's just make sure we're handling inf and -inf right and leave all that other stuff until later. The point is: what is the minimum we need to be future proof and compatible to other language features.

Re: Humorous but serious article

2008-08-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: HaloO, John M. Dlugosz wrote: See my latest creation at http://www.dlugosz.com/Perl6/web/APL.html Nice write-up! You say that there's no syntax for refering to a multi as a whole. But is that not simply the short name? E.g. infix:+ is the

[perl #56748] [BUG] Null PMC access in type()

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Wed Jul 09 10:48:19 2008, [EMAIL PROTECTED] wrote: I found a small piece of code that reproduces the Null PMC access in type() error: sub f(Int $n){ if ($n = 0 ){ f($n-1); } } f(0); produces the above error on parrot + rakudo r29207, Debian GNU Linux i386 32bit.

[perl #56944] [BUG] integer arithmtics should result in integers

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Tue Jul 15 04:12:36 2008, [EMAIL PROTECTED] wrote: Rakudo r29470: $ ../../parrot perl6.pbc -e 'say (1+1).WHAT' Num $ ../../parrot perl6.pbc -e 'say (1*1).WHAT' Num $ ../../parrot perl6.pbc -e 'say (1**1).WHAT' Num All of these should print Int instead. And they do as of r30092.

Re: new article, A Romp Through Infinity

2008-08-08 Thread Will Coleda
On Thu, Aug 7, 2008 at 11:29 AM, [EMAIL PROTECTED] wrote: Supporting multiple levels of infinities, transfinite numbers or even Surreal Numbers should be considered in the same category of features as returning multiple answers from complex trig functions. They're an interesting thing to

[perl #54736] error on winxp with perl6.exe 0.6.2

2008-08-08 Thread [EMAIL PROTECTED] via RT
Hi, On Fri May 23 14:26:47 2008, [EMAIL PROTECTED] wrote: a simple say 6; throws Null PMC access in isa() current instr.: 'parrot;Perl6Object;make_proto' pc 58 (src/gen_builtins.pir:81) called from Sub 'parrot;Perl6Str;onload' pc 1181 (src/gen_builtins.pir:804) called from Sub

[perl #57722] Substr with negative start and length gives different results from perl5

2008-08-08 Thread via RT
# New Ticket Created by Ron Schmidt # Please include the string: [perl #57722] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57722 Index: src/builtins/any-str.pir

[perl #56014] bug in spectest_regression

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Sun Jun 29 14:06:44 2008, pmichaud wrote: On Wed Jun 18 09:38:09 2008, [EMAIL PROTECTED] wrote: A test in spectest_regression failed, It was in S02-polymorphic_types: I'm running on Win32 (XP SP2), parrot/perl6 was built with Visual Studio 9 Express and Activestate 5.8

[perl #56618] [BUG] rakudo segfaults calling subs in a module

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Sun Jul 06 10:13:15 2008, jhorwitz wrote: excellent, this fixes my problem. do we want to close out this ticket and let RT #47956 handle the rest, or are there still some lingering issues to address with :instanceof? Maybe, but we're not using it for the moment and there's some larger

[perl #57388] Namespaces don't work in class declarations

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Tue Jul 29 11:27:34 2008, [EMAIL PROTECTED] wrote: Hi there, declaring classes in other namespaces except the toplevel one results in emtpy classes (revision 29850). This code: class Foo::Bar { method foo {} } my $b = Foo::Bar.new; $b.foo; Gives this stacktrace Method 'foo'

[perl #57740] Dotty method calls confuse rakudo's MMD mechanism

2008-08-08 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #57740] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57740 r30120: $ ./perl6 -e 'my $s = hi; $s = $s.uc' # works $ ./perl6 -e 'my $s = hi;

Re: windows XP copyfile

2008-08-08 Thread Will Coleda
On Thu, Aug 7, 2008 at 9:38 AM, Tara [EMAIL PROTECTED] wrote: I'm trying to do a Perl script (PC has Perl5 installed) in a BAT file which will open the CMD prompt, interact with the user and copy files from one location to other directories. Does anyone know how to dir the files in a

Re: Catching exceptions with the // operator

2008-08-08 Thread Yaakov Belch
Thank you very much! my $bill = try ack() orelse try thpp() orelse do ppt(); This certainly does what I asked for, and it's short enough (even if we need to add a few brackets). Yes, the basic problem with the proposal is that it catches all exceptions willy nilly and

[perl #57340] Empty {} or pair {1=2} does not create anonymous hash in rakudo

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Sun Jul 27 08:27:18 2008, masak wrote: From S06 http://dev.perl.org/perl6/doc/design/syn/S06.html: ] {...} is always a block. However, if it is completely empty or consists ] of a single list, the first element of which is either a hash or a pair, it ] is executed immediately to compose

compile error Win32/MSVC in src/ops/core.ops

2008-08-08 Thread Tim Heckman
Wasn't able to build parrot for smoke testing. This was using the MS Visual C++ compiler. src\ops\core_ops.c src\ops\core.ops(821) : error C2275: 'opcode_t' : illegal use of this type as an expression C:\work\parrot\include\parrot/config.h(128) : see declaration of 'opcode _t'

Re: [svn:parrot] r30123 - in trunk: src src/ops src/pmc t/op

2008-08-08 Thread NotFound
On Fri, Aug 8, 2008 at 9:12 AM, chromatic [EMAIL PROTECTED] wrote: On Thursday 07 August 2008 23:50:54 [EMAIL PROTECTED] wrote: Add a return continuation attribute to the Exception pmc and fill it in the throw opcode. Modified: trunk/src/ops/core.ops

Re: compile error Win32/MSVC in src/ops/core.ops

2008-08-08 Thread NotFound
On Fri, Aug 8, 2008 at 2:16 PM, Tim Heckman [EMAIL PROTECTED] wrote: Wasn't able to build parrot for smoke testing. This was using the MS Visual C++ compiler. src\ops\core_ops.c src\ops\core.ops(821) : error C2275: 'opcode_t' : illegal use of this type as an expression Please try again

Some details of function return captures

2008-08-08 Thread John M. Dlugosz
I was trying to figure out exactly how Captures manage to stay invisible even though functions return them, yet still let you use Capture objects when you want to. Please see my conclusions at http://www.dlugosz.com/Perl6/web/return.html. The Summary at the very bottom clarifies the

Re: new article, A Romp Through Infinity

2008-08-08 Thread Mark J. Reed
On Thu, Aug 7, 2008 at 11:31 AM, Will Coleda [EMAIL PROTECTED] wrote: On Thu, Aug 7, 2008 at 11:29 AM, [EMAIL PROTECTED] wrote: Supporting multiple levels of infinities, transfinite numbers or even Surreal Numbers should be considered in the same category of features as returning multiple

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

2008-08-08 Thread larry
Author: larry Date: Fri Aug 8 07:59:12 2008 New Revision: 14573 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S13.pod Log: clarify that foo is a real function even when representing a multiple dispatch s/q:code/quasi/ Modified:

Re: Some details of function return captures

2008-08-08 Thread TSa
HaloO John M. Dlugosz wrote: I was trying to figure out exactly how Captures manage to stay invisible even though functions return them, yet still let you use Capture objects when you want to. Please see my conclusions at http://www.dlugosz.com/Perl6/web/return.html. The Summary at the very

Re: Catching exceptions with the // operator

2008-08-08 Thread TSa
HaloO, Yaakov Belch wrote: I believe that ---from a usability point of view--- it's very important to: * classify exceptions by severity or other characteristics, * provide named adverbs/pragmas to modify default CATCH handlers, * make them configurable by outer scopes. [..] The programmer

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

2008-08-08 Thread Brandon S. Allbery KF8NH
On 2008 Aug 8, at 10:59, [EMAIL PROTECTED] wrote: Modified: doc/trunk/design/syn/S06.pod = = = = = = = = == --- doc/trunk/design/syn/S06.pod(original) +++ doc/trunk/design/syn/S06.podFri Aug 8 07:59:12 2008 @@

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

2008-08-08 Thread larry
Author: larry Date: Fri Aug 8 10:34:49 2008 New Revision: 14574 Modified: doc/trunk/design/syn/S02.pod Log: allow isolated ' and - in identifiers (only if followed by alpha) Modified: doc/trunk/design/syn/S02.pod

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

2008-08-08 Thread Larry Wall
On Fri, Aug 08, 2008 at 10:34:50AM -0700, [EMAIL PROTECTED] wrote: : Author: larry : Date: Fri Aug 8 10:34:49 2008 : New Revision: 14574 : : Modified: :doc/trunk/design/syn/S02.pod : : Log: : allow isolated ' and - in identifiers (only if followed by alpha) Darn the syntax highlighers,

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

2008-08-08 Thread Jon Lang
But are 'twas and -x valid identifiers? IMHO, they should not be. -- Jonathan Dataweaver Lang

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

2008-08-08 Thread jerry gay
On Fri, Aug 8, 2008 at 12:57 PM, Jon Lang [EMAIL PROTECTED] wrote: But are 'twas and -x valid identifiers? IMHO, they should not be. no, indeed they are not, because they don't start with underscore or alpha. that's why they won't work. ~jerry

Re: [perl #57636] [TODO][PDD19] Document the reason for :unique_reg flag

2008-08-08 Thread Patrick R. Michaud
On Thu, Aug 07, 2008 at 10:15:24AM -0400, Will Coleda wrote: Now, if the problem is that the register allocator is broken, then let's fix the register allocator. If :unique_reg is just a workaround because fixing it is hard, let's document it as deprecated with the expectation that it will be

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

2008-08-08 Thread John M. Dlugosz
Don't forget I still have edits posted at http://www.dlugosz.com/Perl6/offerings/. larry-at-cvs.perl.org |Perl 6| wrote: Author: larry Date: Fri Aug 8 07:59:12 2008 New Revision: 14573 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S13.pod

Re: Some details of function return captures

2008-08-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: If such a ReturnCapture could also be preliminary of some kind, then lvalue subs could be lazily resumed when the rvalue comes in. Can you elaborate on that? I don't follow. Also infix:/ needs a lazy item that is collapsed into Int, Num or

Differential Subscripts

2008-08-08 Thread John M. Dlugosz
How is @array[*-2] supposed to be implemented? S09v28 // reported again 8-Aug-2008 Is this magic known to the parser at a low level, or is it possible to define your own postcircumfix operators that interact with the interpretation of the argument? Does this use of * apply to any

Quick question: (...) vs [...]

2008-08-08 Thread John M. Dlugosz
What is the difference between (1,2,3) and [1,2,3] ? --John

List of captures, why?

2008-08-08 Thread John M. Dlugosz
Why is 3;3;3 a list of captures rather than a list of lists? --John

Re: Quick question: (...) vs [...]

2008-08-08 Thread Brandon S. Allbery KF8NH
On 2008 Aug 8, at 22:53, John M. Dlugosz wrote: What is the difference between (1,2,3) and [1,2,3] ? IIRC one is a list, the other a reference to a list --- which in perl6 will be hidden for the most part. so practically speaking the difference is minimal. -- brandon s. allbery

Re: List of captures, why?

2008-08-08 Thread Brandon S. Allbery KF8NH
On 2008 Aug 8, at 23:06, John M. Dlugosz wrote: Why is 3;3;3 a list of captures rather than a list of lists? IIRC it has to do with providing enough information for slices and/or * to work in multiple dimensions. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL

Re: List of captures, why?

2008-08-08 Thread John M. Dlugosz
Brandon S. Allbery KF8NH allbery-at-ece.cmu.edu |Perl 6| wrote: On 2008 Aug 8, at 23:06, John M. Dlugosz wrote: Why is 3;3;3 a list of captures rather than a list of lists? IIRC it has to do with providing enough information for slices and/or * to work in multiple dimensions. So how

Re: Differential Subscripts

2008-08-08 Thread Jon Lang
On Fri, Aug 8, 2008 at 7:41 PM, John M. Dlugosz [EMAIL PROTECTED] wrote: How is @array[*-2] supposed to be implemented? S09v28 // reported again 8-Aug-2008 Is this magic known to the parser at a low level, or is it possible to define your own postcircumfix operators that interact with the