Methods like get_/set_ do not necessarilly correspond to any actual member variable of an objectI'm talking about an API. That was the main thrust of my original post. Actual member variables are supposed to be hidden, and they are hidden equally well by my method or yours.
Making FETCH and STORE procedures that handle every possible method call would meanI didn't suggest that they should handle every possible method call. They are specifically for simple accessors. Any other methods would be written just as before.
In reply to Re^8: tie for Perlish, encapsulated objects
by Roy Johnson
in thread tie for Perlish, encapsulated objects
by Roy Johnson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |