var dangling : Node = nil
echo "end!"
PS E:codenimsrctestsrc> nim --version Nim Compiler Version 2.3.1 [Windows: amd64] Compiled at 2025-02-03 Copyright (c) 2006-2025 by Andreas Rumpf
active boot switches: -d:release
Hint: used config file 'E:Toolsnimconfignim.cfg' [Conf] Hint: used config file 'E:Toolsnimconfigconfig.nims' [Conf] Hint: mm: orc; threads: on; opt: speed; options: -d:release 10541 lines; 0.021s; 10.562MiB peakmem; proj: E:codenimsrctestsrctest.nim; out: E:codenimsrctestsrctest.exe [SuccessX] Hint: E:codenimsrctestsrctest.exe --verbose [Exec] end!
I marked this RFC as "rejected" in order to make it clear. owned ref is now an annotation that is ignored and there are no plans of reviving it. This work has been succeeded in favour of mm:arc.
If you want "ownership you can count on" you can still get this with a custom smart pointer type.
OK, and as a beginner in Nim with some knowledge of C++ and Rust, it is important for me to understand the language features through RFCs.
Thanks for your time @Araq
Perhaps try reading the documentation first, before going to an RFC? Most of it is really quite decent.
https://nim-lang.org/documentation.html https://nim-lang.org/docs/manual.html https://nimprogrammingbook.com/