I am planning to add the following idea,
creation of a GC class which creates within the current scope a collection (whithin the current function), where I call it after class declaration, and simple call _(GC, gc).watch(...) with arglist where I can add all of them in one line.
next I'll be able to call the gc.clean(); which will manage to handle all the objects created within the scope and release the memory reserved, ... this idea is still cooking inside my mind, where still I am thinking of how to manage scope and merge it within the same new() macro. it might be easy if I define the gc variable as a hidden one, and use the same name inside all fucntions.... read more
I've added a special enum as const struct, where it could be used easily inside objects with variable type, and enum values, thank you C you have a lot.
still cannot decide best for gui, but I am playing aroud GTK+3 , need help on windows to find out a better way to do it.