Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Moose "unions" and inheritance

by tobyink (Abbot)
on Nov 30, 2012 at 12:06 UTC ( #1006465=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    # It's actually a lot more complex than this, but just
    # pretend it's this simple...
    sub HashRef () {   ### empty prototype
      return Moose::Meta::TypeConstraint->lookup('HashRef');
  2. or download this
        isa => HashRef
  3. or download this
    package A;
    has data => (is => 'ro');
    package B;
    has data => (is => 'rw');

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006465]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2015-07-31 13:33 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (277 votes), past polls