3 ms·
However that doesn't mean that you shouldn't be able to either Would be nice to be able to tell if something is allocated on the heap or stack in a portable wa
by Gibbon1 9y ago
However that doesn't mean that you shouldn't be able to either
Would be nice to be able to tell if something is allocated on the heap or stack in a portable way.
As in being able to ask if and object is thread local or not. The language and run time could support that but studiously does not.
Just like the language could allow you to directly monkey with the ABI but does not.
- wruza 9y agoThat something could be allocated by custom allocator like new or g_slice_alloc. You can monkey with the ABI as numerous FFI libraries do, but it is not portable by definition, unless you’re using, well, portable FFI library. Personally I can’t see why string, abi, etc libraries must be included. Include GLib++/GObject++ then and use its actually large ecosystem — what problem are you trying to solve by blaming low-level? That low-level is too low? Do you need high-level low-level that everyone will obey next morning? Check Java?
- Gibbon1 9y ago> portable FFI library I looked into that, not available on many many platforms.