Re: multiple inheritance and instance data?
- From: Abigail <abigail@xxxxxxxxxx>
- Date: 30 Mar 2007 09:43:34 GMT
bugbear (bugbear@xxxxxxxxxxxxxxxxxxxxxxxxx) wrote on MMMMCMLIX September
MCMXCIII in <URL:news:460cc25b$0$8748$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxx>:
<> Abigail wrote:
<>
<> (a nice treatise on OO design).
<>
<> I read your stuff. I am *very* grateful,
<> and it looks complicated enough to be good (!)
<>
<> But, frankly, it's beyond my perl knowledge.
<>
<> In particular, \do, Scalar::Util 'refaddr', \my,
<> and the (I assume careful...) use of blocks
<> is all new to me.
\ is an operator, described in perlop. It returns a reference, references
are described in perlref. Scalar::Util is a module, with its own manual
page. my is described in perlsub, IIRC. Blocks are standard syntax, and
I think described in perlsyn.
<> Rather than ask you a load of questions about
<> your design, do you have a reference or tutorial
<> you could point me too?
Not really. Google for inside-out objects. Or buy Damian Conway's
Perl Best Practises.
<> I'm assuming you're writing up "conventional" practice
<> for me (for which, again, I'm grateful).
<>
<> BTW, in answer to your other question,
<> "Or are you going to break encapsulation, and peek inside package B
<> while developping package A? But if you're going to break encapsulation,
<> why bother with OO?"
<>
<> IMHO inheritence/overriding are powerful enough tools
<> (without encapsulation) to merit
<> their use, but if I can "have it all", that's wonderful.
With inside-out objects, you can have it all.
Abigail
--
A perl rose: perl -e '@}-`-,-`-%-'
.
- References:
- multiple inheritance and instance data?
- From: bugbear
- Re: multiple inheritance and instance data?
- From: Abigail
- Re: multiple inheritance and instance data?
- From: bugbear
- multiple inheritance and instance data?
- Prev by Date: Re: multiple inheritance and instance data?
- Next by Date: readline - possible security hole
- Previous by thread: Re: multiple inheritance and instance data?
- Next by thread: Re: multiple inheritance and instance data?
- Index(es):
Relevant Pages
|
|