Just a question
Is a iterator/visitor object type more than a reference collection ?
If it is I solve similar problem with two arrays in a collection object
The first handle reference to objects and the second handle parameters object related to each reference in the first array.
>Rex,
>
>A couple of things to look at. VFP can easily send arbitrary numbers of parameters around methods calls.
>
>I'd just use a second object as the "parameters", put a property in the object for each parameter and let the iterator just hand the visitor the iterated object reference and the parameters object.
>
>>I have created iterator/visitor type objects in VFP, but I have a question. I now have a visitor which needs parameters for each object visited. I want the iterator object to do nothing but pass the object reference and any parameters to the visitor object and have the visitor object know what to do with the information. I don not want the iterator object to know anything about the information passed except when all the objects have been visited. I have toyed with the idea of having an object in which the object reference and the parameters are properties, but this seems too complicated.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement