metaeducation / ren-c

Library for embedding a Rebol interpreter into C codebases
GNU Lesser General Public License v3.0
126 stars 27 forks source link

GROUP!s in MY Repeat Evaluations #1151

Open hostilefork opened 1 year ago

hostilefork commented 1 year ago

The current implementation technique of MY means this test fails, because count is 2

count: 0
o: make object! [x: null]
nuller: function [y] [return null]
o.(count: count + 1, first [x]): my nuller
did all [
    o.x = null
    count = 1
]

The GROUP! is executed twice, due to the MACRO-based implementation.