[PD-dev] string external & usage count

joerg piringer joerg at piringer.net
Wed Oct 13 19:53:17 CEST 2004


Tim Blechmann wrote:
>>i don't want to use pointers because if i send an invalid pointer to
>>one of my string objects it will most likely crash pd.
>>therefore i use handles. the worst thing that can happen is that a
>>wrong handle refers to the wrong string. i made tests with wrong
>>handles and it is quite fail safe.
> 
> you could store the pointers in a list and test, if it's valid ... 

yes, that's what i call a handle.

> the
> problem with ints that are represented by floats ... you will have a
> point when (x+1 == x) returns true ... which might be a wonderful source
> for errors ...

thanks for the hint.
i'll check that out.

j



-- 
http://joerg.piringer.net
http://www.transacoustic-research.com
http://www.iftaf.org
http://www.vegetableorchester.org




More information about the Pd-dev mailing list