Re: Question about pointers and scalars

Christof Ressi <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
On 20.10.2024 14:35, [email protected] wrote:
> Do you think it would be acceptable if we could let the [pointer] object store the canvas to which the glist is referring, even when the referring scalar has been deleted ?

First off, glist and canvas are the same thing.

In theory, [pointer] *could* obtain the head of the owning glist of an 
invalidated gpointer, as long as the stub hasn't been cut off (i.e. the 
glist hasn't been deleted). This could be a new method, e.g. "glist", 
maybe with an extra argument to specify whether invalidated pointers 
should be considered or not.

Personally, I find it hard to imagine a use case, though. If you want to 
update all [pointer] objects after a scalar has been deleted, this is 
likely done from a central place, so I don't see why you can't just 
store the canvas name.

> This way, we should be able to send messages to the canvas (using send-window message), without the need to explicitly know what is the canvas name ...
> ---
> [email protected] - the Pure Data mailinglist
> https://lists.iem.at/hyperkitty/list/[email protected]/message/GBSW4MIIFSP6WFZT6YH4A5WMAY352Q3R/
>
> To unsubscribe send an email to [email protected] mailing list
> UNSUBSCRIBE and account-management -> https://lists.iem.at/
>

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/MJRON6HM237AFLVRXAGEZLVOFWRLMGSP/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.