Re: [R-pkg-devel] Check if any object pointing to a given address is locked

2025-04-24 Thread Ivan Krylov via R-package-devel
В Thu, 24 Apr 2025 12:36:57 + Tony Wilkes пишет: > One use-case for this is to check if it's save to modify an object by > reference. I think you might need NOT_SHARED() for that, except it's far from being simple, especially once you pass arbitrary expressions (not just variable names) as a

[R-pkg-devel] Check if any object pointing to a given address is locked

2025-04-24 Thread Tony Wilkes
Hi everyone, I have a question. Given the address of an object ("address" in the sense given by, for example, "data.table::address()"), is it possible to check if any binding in any environment pointing to that address is locked? So a function similar to "bindingIsLocked()", except the function