in reply to new idea - please comment on this
in thread OO - problem with inheritance

It is similar to your original idea to store parameters data in a hash (instead of hashes you have objects which stores same information). So it is not really new idea :) Anyway it could be more cleaner approach if you move all your validation code into that class and replace hash manupulations with cleaner interface provided by that class. IMHO it is good approach.

--
Ilya Martynov (http://martynov.org/)

Replies are listed 'Best First'.
Re: Re: new idea - please comment on this
by uwevoelker (Pilgrim) on Jan 14, 2002 at 21:37 UTC
    You are right. I thought cloning of objects is much easier (because I have heard of the common clone-method in new/copy constructors), but actually it isn't very different from copying an hash. But I also like the idea of moving all my validation code into that class.

    Thank you for your comment.