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
An interface for method chaining of constructors. ISupportsConstructorChain would set the __call metamethod to the constructor of the implementing class, which would allow constructs like
Wait, brain fart! Simply setting __call to the constructor wouldn't work, since we need to return all 3 Point3Ds, not just the last one (referring to the example). We need to store the points that are being constructed in an array somewhere, and unpack them on every __call. That will give the result we wanted!
An interface for method chaining of constructors. ISupportsConstructorChain would set the
__call
metamethod to the constructor of the implementing class, which would allow constructs likeThis issue has been derived from #1
The text was updated successfully, but these errors were encountered: