Skip to content

Commit bb97781

Browse files
committed
Add compose to REPR functions table.
This will be used to replace all the places we do introspection calls in REPRs, which create nested runloops.
1 parent 769044f commit bb97781

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/6model/sixmodelobject.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ struct SixModel_REPROps {
257257
* representation instance if needed. */
258258
PMC * (*type_object_for) (PARROT_INTERP, PMC *HOW);
259259

260+
/* Composes the representation, passing any composition info. This
261+
* is the way a meta-object provides configuration to a REPR, which
262+
* it may then use to do layout, etc. */
263+
void (*compose) (PARROT_INTERP, STable *st, PMC *repr_info);
264+
260265
/* Allocates a new, but uninitialized object, based on the
261266
* specified s-table. */
262267
PMC * (*allocate) (PARROT_INTERP, STable *st);

0 commit comments

Comments
 (0)