Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highly Annoying Bug/Quirk of Mere Mortals?
Message
De
21/10/2002 14:32:19
 
 
À
21/10/2002 11:08:58
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00713531
Message ID:
00713603
Vues:
17
Okay, I did some research. At least in v6 of MM, it appears the entire DE class is erased and re-created. That would explain why custom methods, etc. are destroyed.

But, I also have a solution.

I am going to create a "dedecorator" base class and subclass it accordingly. I will drop the dedecorator class on the dataenvironment class. The dedecorator class will provide the additional functionality necessary to keep the persistance layer in tact. When the de class gets erased and re-created, I'll just have to re-drop the dedecorator class back on.

For more information, see "Design Patterns: Elements of Reusable Object-Oriented Software" (Gamma, Helm, Johnson & Vlissides, 1995), p.175. It describes the Decorator pattern.

Paul
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform