ncannasse / castle

A structured database with a local web service to edit it
ISC License
558 stars 78 forks source link

Add .getName() on fake enums #146

Closed Speedphoenix closed 1 year ago

ncannasse commented 1 year ago

Maybe if we name it toString() instead it would be automatically called when doing trace() ?

Speedphoenix commented 1 year ago

std.haxe.EnumTools exposes getName( for regular enums, which don't seem to have a toString() method, I was hoping to use getName() for both enums and cdb fake enums interchangeably

Should we maybe have both toString() and getName()?