[PD-dev] how to use canvas_getcurrent() ?

Miller Puckette mpuckett at man104-1.ucsd.edu
Fri Nov 5 21:12:38 CET 2004


Hmm, this is already done, sort of, by the symbol binding mechanism.  Perhaps
I should go binding the current canvas to sa symbol and just return _that_.
But I'm scared of the potential performance hit of having everything
have to work that way.

M

On Fri, Nov 05, 2004 at 10:50:00PM +0100, Tim Blechmann wrote:
> On Fri, 5 Nov 2004 11:25:17 -0800
> Miller Puckette <mpuckett at man104-1.ucsd.edu> wrote:
> 
> > (2) if a function
> > returns a pointer to something, how long can you expect the pointer to
> > be valid afterward.
> 
> you could do something like with the pointers to a table ... keep the
> pointers you have set in memory and update them ... with something like
> that, it might even be possible to write a garbage collector ... anyway,
> no function would be allowed to change these pointers, except with a
> certain function ...
> 
> cheers ... tim
> 
> -- 
> mailto:TimBlechmann at 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
> 
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-dev




More information about the Pd-dev mailing list