twinbasic / twinbasic

274 stars 24 forks source link

byref values are not passed from parameters of subs or functions to properties of an object #1619

Closed IvanPausich closed 1 year ago

IvanPausich commented 1 year ago

byref values ​​are not passed from parameters of subs or functions to properties of an object, 16894412681134998548778519159051 16894413156054382022530577629563

WaynePhillipsEA commented 1 year ago

Are you expecting the property-let of Binario to be called, due to the updating of the ByRef parameter in the ADD routine? If so, that's not how it works in VBx.

IvanPausich commented 1 year ago

forgive me, thanks, but maybe I'm too used to freebasic, which allows you. updates the property value to you, as if it were a normal pointer using byref

WaynePhillipsEA commented 1 year ago

No problem, I'll close this since we can't consider changing that behaviour for back-compatibility reasons.

IvanPausich commented 1 year ago

sorry, but if I use the label object, with its let caption property, in byref the value is passed in both directions, it should also work with a property created on an abstract object such as a class, if not, how could I go about doing it , without using passing variables