struct testDef
(
info = "no info",
fn addInfo txt =
(
append this.info txt
)
)
fn getInfo =
(
t = testDef()
t.addInfo "add some info contnet."
t2 = testDef()
t2.info
)
getInfo()
getInfo()
getInfo()
正常返回:
#Struct:testDef(
addInfo:<fn>; Public,
info:<data>; Public)
getInfo()
"no info"
"no info"
"no info"
max2022返回:
#Struct:testDef(
addInfo:<fn>; Public,
info:<data>; Public)
getInfo()
"add some info contnet."
"add some info contnet.add some info contnet."
"add some info contnet.add some info contnet.add some info contnet."
群众里面有坏人啊!