snazzy-d / sdc

The Snazzy D Compiler
MIT License
249 stars 55 forks source link

Finalization. #288

Closed dsm9000 closed 1 year ago

dsm9000 commented 1 year ago

Depends on #287 .

allocAppendable() -- now takes an optional finalizable bool param which forces a finalizable size class. makeFinalizable() -- sets a finalizer for given ptr. destroy() -- calls finalizer, if one is set, then frees.

Tests.

deadalnix commented 1 year ago

I propose we put this on the side while the appendable thing gets sorted out. This is has grown too big and is dependent on it.