You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is no way for the compiler to auto initialize ptr object if it not allocated first.
here is my proposal(in no particular order or preference):
accept @GULPF answer as standard practice, and put it into doc/manual
fix system.create/system.createShared to initialize ptr object and put it into doc/manual
create new/newShared similar with C++ resulting in initialized ptr object and put it into doc/manual
if this issue considered as a bug, we can fix ptr object contruction behave like ref object construction except it need to be manually freed/deallocated.
point number 1,2,3,4 can coexist together without conflict.
More details here:
https://forum.nim-lang.org/t/3875
The text was updated successfully, but these errors were encountered: