#include using namespace Upp; // U++ Ptr class is sort of 'weak pointer' whose main purpose it to become NULL after pointee // is destructed struct Foo : Pte { String text; }; CONSOLE_APP_MAIN { Ptr ptr; { Foo foo; foo.text = "Text"; ptr = &foo; Cout() << (void*)~ptr << " -> " << ptr->text << "\n"; } Cout() << "-------------\n"; Cout() << (void*)~ptr << "\n"; }