mfichman / jogo

High(er) performance compiled programming language with clean, powerful syntax
MIT License
6 stars 1 forks source link

Refcount incorrect on returned temporaries #20

Closed mfichman closed 13 years ago

mfichman commented 13 years ago

Returned temporaries should have a refcount of 0 if just constructed. Temporaries also need to have refcount_inc called on them; right now, this doesn't happen for temporaries.

mfichman commented 13 years ago

Actually, all objects should be returned with an incremented refcount, because the caller expects to decrement any value that is temporary. This issue was resolved.