PyHP-pph / PyHP_pph

This repository serves as a centre for collaboration on the PyHP++# language. It will also include a functioning interpreter and compiler for PyHP++# once the standard is finalised.
https://www.reddit.com/r/PyHP_pph/
GNU Affero General Public License v3.0
23 stars 3 forks source link

Memory management #10

Closed ghost closed 7 years ago

ghost commented 7 years ago

We should take manual memory management from C++.

Kinda like this:

myObject = new MyClass(12);
...
del myObject;
myObject.doSomething(); //#* Use-after-free; undefined behavior.
Kampfkarren commented 7 years ago

I'm working on the spec for variables right now, I will include these in it.