Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^6: Moose role with requirement consuming another role

by Boldra (Deacon)
on Jul 21, 2011 at 11:20 UTC ( #915838=note: print w/replies, xml ) Need Help??

in reply to Re^5: Moose role with requirement consuming another role
in thread Moose role with requirement consuming another role

Thanks for those definitions.

This statement:

In CeePlusPlus, a class that has any PureVirtual member functions is an abstract base class.
seems to suggest that, at least for C++, an abstract base class is the same as an abstract class.

However, I still think it's clear that while all Moose roles are abstract classes (they cannot be instantiated), only those Moose roles which do nothing more than list 'requires' are abstract base classes. None of the Moose roles I am using are abstract base classes.

Update: Having read more about the "interface role", I've changed my mind. What I called an abstract base class above is really an interface-only role. Arunbear recognized this in the beginning. I don't have any of these in my real code.

- Boldra
  • Comment on Re^6: Moose role with requirement consuming another role

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://915838]
[james28909]: i figured it out
[james28909]: upon trying various solutions, i was forgetting to package up the script into an executable
[marto]: that'll do it
[james28909]: im glad im not in charge of anything important, like filling up peanut butter jars
marto grins

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-07-28 14:21 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (431 votes). Check out past polls.