This is a big unresolved question for me... I don't have a policy about: (1) under what contextx you can safely call functions; and (2) if a function returns a pointer to something, how long can you expect the pointer to be valid afterward. I'd like to get it all coherent; then I wouldn't have to write hundereds of comments and people wouldn't have to read them all!
cheers Miller
On Thu, Nov 04, 2004 at 11:51:53AM +0100, Tim Blechmann wrote:
always call it from the new() routine; otherwise the current canvas is undefined. You can store the pointer for later (an object's parent canvas is guaranteed never to change.)
hm ... if something like this would be documented some way, it might reduce my headaches when trying to explain this error ... i assume, this behaviour is the same for all canvas functions exported in m_pd.h? if so, a small comment in m_pd.h would definitely be useful ...
cheers ... tim
-- mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.mokabar.tk
After one look at this planet any visitor from outer space would say "I want to see the manager." William S. Burroughs