The enum TracePrefix type gets defined RexxActivation.hpp and is public (needs to be used from RexxActivation.cpp and Activit.cpp).

What is the proper way to become able to refer to the enum TracePrefix in 
Activity.hpp and Activity.cpp?

Currently "Activity.hpp" defines the prototype for traceOutput(...) as

   void traceOutput(RexxActivation *, RexxString *, RexxString *, RexxObject *, 
RexxObject *);

and should be changed to allow for a TracePrefix argument as the third 
argument, hence trying to:

   void traceOutput(RexxActivation *, RexxString *, TracePrefix, RexxString *, 
RexxObject *, RexxObject *);

If doing so the compiler yields an error "error C2664: ... cannot convert argument 3 from 'RexxActivation::TracePrefix' to 'TracePrefix'".

Therefore changing the prototype to

     void traceOutput(RexxActivation *, RexxString *, 
RexxActivation::TracePrefix, RexxObject *, RexxObject *, RexxObject *);

yields the compiler error messages:

   ...\Activity.hpp(210): error C2027: use of undefined type 'RexxActivation'
   ...\Activity.hpp(73): note: see declaration of 'RexxActivation'

The type "RexxActivation" can be used in Activity.hpp (defines at the top "class RexxActivation;") do define prototypes.

---

The question: what needs to be defined where in order to become able to reference the enum TracePrefix from Activity.hpp and Activity.cpp without an error?

---rony

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to