Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 Tip-o-the-day
Message
De
17/07/1998 07:30:45
 
 
À
17/07/1998 03:03:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00118474
Message ID:
00118524
Vues:
17
>> I also havent found a truly useful realworld use of THIS_ACCESS.

Here's some. Look at the gereric THIS_ACCESS; it returns an object reference, usually THIS. The returned object reference can be any object.

This means that THIS_Access can be used as a broker that decides which object handles the message. This has huge applications. Basically it makes many generic design patterns like Proxy, Broker, Facade, Decorator, Chain Of Responsibility, and most of the creational patterns like Builder, Abstract Factory, and Prototype, very easy to create in VFP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform