flatjs icon indicating copy to clipboard operation
flatjs copied to clipboard

Allow structures to carry non-virtual methods

Open lars-t-hansen opened this issue 9 years ago • 1 comments

The poster child for this is a Lock structure with methods called acquire() and release(), to be reused inside other objects without needing a separate heap allocation.

In general this seems useful and unproblematic, even in the face of structure inheritance.

lars-t-hansen avatar Jun 06 '15 19:06 lars-t-hansen

This will require a change to method invocation syntax, too, since it means allowing longer paths.

lars-t-hansen avatar Jun 07 '15 06:06 lars-t-hansen