Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

[perl #53904] rakudo only handles first pair in a new() method
# New Ticket Created by  Moritz Lenz
# Please include the string:  [perl #53904]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53904 >


rakudo as of r27393

class Foo {
has $.a;
has $.b;
}

my $x = Foo.new(a => 1, b => 2);

say $x.a;
say $x.b;

Output:
1

# end of output. Empty line above.

Now if b => 2 is passed as the first parameter:

class Foo {
has $.a;
has $.b;
}

my $x = Foo.new(b => 2, a => 1);

say $x.a;
say $x.b;

Output:

2
# end of output.

The order of declaration of $.a and $.b doesn't seem to matter.


--
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/


Report this thread to moderator Post Follow-up to this message
Old Post
Moritz Lenz (via RT)
05-09-08 01:35 PM


Re: [perl #53904] rakudo only handles first pair in a new() method
Since this didn't make it to the mailing list -- this is now fixed
as of r27397.

Pm


Report this thread to moderator Post Follow-up to this message
Old Post
Patrick R. Michaud
05-10-08 12:47 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Perl 6 Compiler archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:37 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.