You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check that the foo binding already exist in public_bind_env and remove it. (I can submit a PR easily, and I think it's the right approach)
give a better error message, explaining what the problem is and what classes and binding are involved. it's easy enough to see what happens in the reprex, but I've been struggling since yesterday with a version of this in 📦 arrow. I guess I can also submit a PR for this option.
The text was updated successfully, but these errors were encountered:
This looks related to #166 and #168. I think that for subclasses there should be better checks that ensure that public/private/active items are not overridden by items from another category. This would be the second solution you proposed.
Allowing a field to be overridden by an active binding could result in tricky problems. For example, if x is an active binding, in a method you can access super$x. However, if x is a regular (public) field, there is no super$x, only self$x.
Can we do one of these here:
https://github.com/r-lib/R6/blob/master/R/new.R#L121
check that the
foo
binding already exist inpublic_bind_env
and remove it. (I can submit a PR easily, and I think it's the right approach)give a better error message, explaining what the problem is and what classes and binding are involved. it's easy enough to see what happens in the reprex, but I've been struggling since yesterday with a version of this in 📦 arrow. I guess I can also submit a PR for this option.
The text was updated successfully, but these errors were encountered: