Fwd: [perl #112676] SUPER does not seem to work

2012-05-03 Thread phiroc
Hi, I have tried most of the examples in the Wrap Chapter in S6, and I kept gettting a "Not enough positional parameters passed; got 0 but expected 1" error message. Try the following code: sub thermo ($t) { say "t is $t in thermo"; } &thermo.wrap( { callwith( ($^t-32)/1.8 ) } ); say &therm

Re: [perl #112676] SUPER does not seem to work

2012-05-03 Thread phiroc
Hi, the S6 and S12 docs are not very clear on how to use nextsame to call super methods, etc. Could you please provide examples of how to call the superclass's constructor? Furthermore, I can't get the below code to work. Many thanks. Best regards, Philippe - class cell {

Panda on Windows

2013-03-20 Thread phiroc
1 in method BUILDALL at src\gen\CORE.setting:738 in method bless at src\gen\CORE.setting:722 in method new at src\gen\CORE.setting:707 in method new at c:/rakudo/lib/parrot/4.10.0/languages/perl6/lib/Panda.pm:20 in block at c:\rakudo\bin\panda:108 Any help would be appreciated. phiroc

Re: Panda on Windows

2013-03-20 Thread phiroc
Hi, which ports should be authorized? Philippe - Mail original - De: "Tadeusz Sośnierz" À: perl6-langu...@perl.org Envoyé: Mercredi 20 Mars 2013 13:49:21 Objet: Re: Panda on Windows On 03/20/2013 10:21 AM, phi...@free.fr wrote: > Hello, > > when I type "panda" on the Windows command

ADT and GADT

2013-03-21 Thread phiroc
Hello, will Abstract Data Types and Generalized Abstract Data Types be available in Perl6 anytime soon? Many thanks. Philippe

Re: ADT and GADT

2013-03-21 Thread phiroc
Hi Carl, thanks for your reply. I like solution 2, but am going to have to delve into the Perl 6 Documentation to understand its esoteric syntax: - class Tree { ... } - handles ;, - self.bless(*,, etc.) Philippe - Mail original - De: "Carl Mäsak" À: "Perl6" Envoyé: Jeudi 21 Mars

Problem using a module containing a grammar

2013-03-25 Thread phiroc
Hello, I have created a file called SalesReport.mp6, which contains a grammar - module SalesReport; grammar SalesExportGram is export { token TOP { ^ + $ } token country { \n +

Re: Problem using a module containing a grammar

2013-03-25 Thread phiroc
If I give the module (SalesReport.pm6) and the grammar declared in it (grammar SalesReport) the same name, I get a "no such method 'parsefile' for invocant of type 'SalesReport'" error, when the following lines are run: use lib '.'; use SalesReport; my $parsed = SalesReport.parsefile('sale