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
Hi @sozysozbot, thanks for pointing out the issue!
I believe it's a typo in the book, using 其 to refer「元」in this case shouldn't be valid wenyan, since 其 refers to an unnamed previous computation result, while in this case the variable is already given the name of「元」.
The code given in the book,
compiles to
in both the online IDE and
wenyan -c
.Contrary to what is claimed in the book (欲令其實亦二。互不相干。當如何。曰。當如是), this code does not make a copy of an array, since no element is pushed to 「乙」. Though
would fix the problem, it might be that the failure of 其 to point to 「元」 is a regression introduced somewhere within the long history of wenyan-lang.
The text was updated successfully, but these errors were encountered: