Re:The eero programming language - a dialect of Objective-C
by comex on Saturday July 07, 2012 @05:42PM
(#4212821)
The weakIvarLayout field seems to do exactly what you're saying for ivars, though there is no equivalent for blocks. (Whether you can [safely] do it anyway depends, I suppose, on whether you're willing to inspect machine code; it's not that hard, though the suggestion does nothing to disprove your claim of hackish minimalism.)
[ Parent
| on HN ]
Re:The eero programming language - a dialect of Objective-C
by flatline3 on Saturday July 07, 2012 @05:49PM
(#4212846)
Unfortunately, as I recall, the meaning of weakIvarLayout is different depending on whether the code is compiled for ARC, non-ARC, or non-ARC GC/GC-optional. Unfortunately I don't remember the specifics off-hand.
Also, yes, runtime machine code inspection is a ... possibility ... :) It's not that 'hard', but it's certainly harder than clean metadata, and it means maintaining individual introspection code for all supported architectures.