in reply to Re: Re: evolving an OO solution for a bitstream
in thread evolving an OO solution for a bitstream
I can have several BitStream objects.Oh, sure, and I guess you use a global variable from which object the 128 bits should be taken if you do:
my $bitstr = BitStream::get_bits(128);
You might have objects, but your code snippet doesn't suggest you have them.
This internal state is conveniently encapsulated from the user. The user has no idea how it is implemented, and BitStream's implementation can change at any moment preserving the interface.The internal state of a hash is also conveniently encapsulated from the user. That doesn't make that hashes are objects. Users have no idea how hashes are implemented, and the implementation of hashes can change at any moment, preserving the interface (and in fact, they did between 5.8.0 and 5.8.1). That still doesn't make hashes objects.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re4: evolving an OO solution for a bitstream
by dragonchild (Archbishop) on Oct 21, 2003 at 14:10 UTC | |
by Abigail-II (Bishop) on Oct 21, 2003 at 14:23 UTC |