qore icon indicating copy to clipboard operation
qore copied to clipboard

implement new c++ calling convention for object arguments

Open davidnich opened this issue 5 years ago • 0 comments

currently declaring an object as a parameter in qpp code results in generated c++ code that requires the caller to dereference the private data pointer themselves - instead a ReferenceHolder<>& parameter should be passed, so that the method can take the reference if needed, but by default the referenced argument will be dereferenced automatically, thereby eliminating the chance for a memory / reference leak

this is a "design bug"

davidnich avatar Sep 25 '19 07:09 davidnich