Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: attribute collisions ín Moose

by eric256 (Parson)
on Apr 14, 2009 at 14:07 UTC ( #757396=note: print w/replies, xml ) Need Help??


in reply to attribute collisions ín Moose

I think you must have meant "Bubba->new->abba" produces the error. The below code works as I expect it to, printing 2 then your error, then 1.

#!/usr/bin/perl use strict; use warnings; use Hubba; use Bubba; print Hubba->new->abba, "\n"; print Bubba->new->abba, "\n";

This makes sense to me because if i have code that is using a Hubba, and I make a Bubba, then that same code should be able to use the Bubba as if it is a Hubba, which means the interface shouldn't change. i.e. hubba is always an Int as the base clase says it should be.


___________
Eric Hodges

Replies are listed 'Best First'.
Re^2: attribute collisions ín Moose
by morgon (Curate) on Apr 14, 2009 at 14:26 UTC
    I think you must have meant "Bubba->new->abba" produces the error.

    Yes of course. Sorry for the typo.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://757396]
help
Chatterbox?
[marto]: I don't think their inability to make any sense is related to alcohol
[Discipulus]: their?
[karlgoethebier]: marto: "their inability.." Perhaps the result of a wrong education?
[karlgoethebier]: or no education?
[choroba]: their = his or her

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-05-23 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?