File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,10 @@ knowhow NQPClassHOW {
170
170
# Compose attributes.
171
171
for self . attributes ($ obj , : local<0 > ) { $ _ . compose($ obj ) }
172
172
173
- # Publish type and method caches.
173
+ # Publish type and method caches and boolification spec .
174
174
self . publish_type_cache($ obj );
175
175
self . publish_method_cache($ obj );
176
+ self . publish_boolification_spec($ obj );
176
177
177
178
# Install Parrot v-table mapping.
178
179
self . publish_parrot_vtable_mapping($ obj );
@@ -350,6 +351,16 @@ knowhow NQPClassHOW {
350
351
pir::publish_method_cache($ obj , % cache )
351
352
}
352
353
354
+ method publish_boolification_spec ($ obj ) {
355
+ my $ bool_meth := self . find_method($ obj , ' Bool' );
356
+ if pir:: defined ($ bool_meth ) {
357
+ pir::set_boolification_spec__0PiP($ obj , 0 , $ bool_meth )
358
+ }
359
+ else {
360
+ pir::set_boolification_spec__0PiP($ obj , 5 , pir::null__P())
361
+ }
362
+ }
363
+
353
364
method publish_parrot_vtable_mapping ($ obj ) {
354
365
my % mapping ;
355
366
for @ ! mro {
You can’t perform that action at this time.
0 commit comments