Re: Euphoria vs. C and OOP
- Posted by Al Getz <Xaxo at aol.com> Jan 05, 2007
- 730 views
Hi again, Someone mentioned inheritance and how it causes an undesirable coupling between program modules and i forgot to get back to comment. I have noticed this too, where you create one 'class' and then use that to start a new class that has some features of the old class, so you end up using much of the old file for the new class. The problem comes up when later some time you find out that the old file had a bug (however small) which means your new class, AND any new classes that came after it, all have the same bug! What a drawback, but i guess that's life. All of the files have to be corrected unless you have been able to use that previous file as an include, in which case you only have to fix that one file and all the rest (which include that one) are then also fixed. I guess it is all part of the search for the ideal program structure, if there even is such a thing. Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."