Lisp property setters #9
Replies: 1 comment
-
Yeah looks like it only worked using the explicit property setter method name, e.g: (setq doc (System.Xml.Linq.XDocument/Parse "<root>someval</root>"))
(setq root (.Root doc))
(.Value root)
(.set_Value root "foo")
(.Value root) I've just fixed in this commit Where you can now use the property name: (.Value root "foo") This is available on the latest v6.0.2 of the dotnet tool update -g x |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docs say either of these syntaxes can be used to set properties:
(set instance { :Prop arg ... })
or(.Prop instance arg)
However the latter doesn't seem to work.
https://sharpscript.net/lisp/#property-setters
Beta Was this translation helpful? Give feedback.
All reactions