Is there any way in javascript to create a "weak reference" to another object? Here is the wiki page describing what a weak reference is. Here is another article that describes them in Java. Can anyone think of a way to implement this behavior in javascript?
...
There seem to be 3 ways of telling GCC to weak link a symbol:
__attribute__((weak_import))
__attribute__((weak))
#pragma weak symbol_name
None of these work for me:
#pragma weak asdf
extern void asdf(void) __attribute__((weak_import, weak));
...
{
if(asdf != NULL) asdf();
}
I always get a link error like this:
Undefined symbo...
The title pretty much sums it.
...
Please let me know how can I disable weak Ciphers for Tomcat 5.5.27
...
Hi,
For legacy reasons I need to use intrusive pointers, as I need the ability to convert raw pointers to smart pointers.
However I noticed there is no weak intrusive pointer for boost. I did find a talk about it on the boost thread list, however nothing concrete.
Does anyone know of a thread safe implementation of weak intrusive poin...
Hello There,
I'm writing games onto IPhone platform and want to leverage the "Play ITunes music while running your app" feature. This is something introduced in OS 3.0 but I want to target OS 2.2.1 with sacrificing that feature, as well.
I'm compiling against 3.0 and have the minimum support set to OS 2.2.1. I also weak referenced "Med...
Hi all,
I am passing some weakrefs from Python into C++ class, but C++ destructors are actively trying to access the ref when the real object is already dead, obviously it crashes...
Is there any Python C/API approach to find out if Python reference is still alive or any other known workaround for this ?
Thanks
...
I am currently in a situation like:
struct A
{
shared_ptr< B > b;
}
struct B
{
shared_ptr< A > a;
}
shared_ptr< A > a(new A()); shared_ptr< B > b(new B();
a->b(b); b->a(a);
I know this won't work, because the references would continue to point to each other. I've also been told that weak_ptr solves this issue.
However, weak ptr has no...