Hallo,
Roman Haefeli hat gesagt: // Roman Haefeli wrote:

> same questions, but asked with fewer sentences:
> 
> how to implement a singleton pattern in puredata, that also works, when
> arbitrary instances are closed or deleted?

The bug, syntax noted, is a known one of the singleton implementation
developed on this list. Of course the simple workaround is to never
close the patch that created the singleton(s). You can look for this
by watching the outlet of singleton.pd IIRC. 

Yes, that's a crude suggestion, but as long as we don't have a real
closebang I don't see a solution to decrement the instance counter
[value] if an objects is deleted and create a new one, if the counter
has reached 0 again.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to