Hi all, I've two classes. A base class and a derived class in two different pyste files. SOMETIMES I get an error message like "Derived::function return a pointer or reference, but no policy is specified", but the policy is specified in the pyste file of the base class. The pyste tutorial says to declare the other pyste file with Import("Base.pyste") but that doesn't work. The error message is the same. The strange thing is I tried this with many classes but the error just occurs sometimes. Can anyone help? Franz
Hi Franz, sorry for taking so long to respond, Franz Kaiser wrote:
Hi all,
I've two classes. A base class and a derived class in two different pyste files. SOMETIMES I get an error message like "Derived::function return a pointer or reference, but no policy is specified", but the policy is specified in the pyste file of the base class. The pyste tutorial says to declare the other pyste file with Import("Base.pyste") but that doesn't work. The error message is the same. The strange thing is I tried this with many classes but the error just occurs sometimes.
It sounds like a bug. Could you post a reproductible small case were the error ocurrs? No time to investigate this too much... Regards, Nicodemus.
I solved the problem by commenting out line 55 "if not exporters.importing" in infos.py. Nicodemus wrote:
Hi Franz, sorry for taking so long to respond,
Franz Kaiser wrote:
Hi all,
I've two classes. A base class and a derived class in two different pyste files. SOMETIMES I get an error message like "Derived::function return a pointer or reference, but no policy is specified", but the policy is specified in the pyste file of the base class. The pyste tutorial says to declare the other pyste file with Import("Base.pyste") but that doesn't work. The error message is the same. The strange thing is I tried this with many classes but the error just occurs sometimes.
It sounds like a bug. Could you post a reproductible small case were the error ocurrs? No time to investigate this too much...
Regards, Nicodemus.
participants (2)
-
Franz Kaiser -
Nicodemus