AdeptLanguage / Adept

The Adept Programming Language
GNU General Public License v3.0
122 stars 9 forks source link

Fix string ownership in Loop Labels example #336

Closed Apis035 closed 6 months ago

Apis035 commented 6 months ago

print(makeNumericSkewer()) and print(makeAlphabetSkewer()) is printing garbage. The returned string is still owned by those function and got freed at the end of the scope.

IsaacShelton commented 6 months ago

Nice catch :+1: