Hello, I have an issue, and dont know whats going on, I have a class "ccClass": nx::Class create ccClass -superclass oodz_baseclass { .... }, when i try to use it from proc ccClass create cc1 -name code -db db It gives me an error, like that in the naviserver logs, instead of space UTF-8 chars:
"invalid command name "ccClass\xc2\xa0create""
Strange thing I can create objects from nsshell without any issues.
May be someone can help me, thank you
Hi Maksym!
"invalid command name "ccClass\xc2\xa0create""
It seems to me that you managed to introduce a non-breaking space (nbsp), which appears as a space visually, but is not a space in the sense of Tcl's syntax def, i.e., as a separator between two Tcl words.
(This happens to me sometimes when I leave on my Mac Keyboard ALT pressed when hitting space.)
HTH, Stefan
Thank you Stefan, I don't even know how that happens. I deleted the line and retyped it, now it's working.
On Mon, Dec 19, 2022 at 10:56 AM Stefan Sobernig stefan.sobernig@wu.ac.at wrote:
Hi Maksym!
"invalid command name "ccClass\xc2\xa0create""
It seems to me that you managed to introduce a non-breaking space (nbsp), which appears as a space visually, but is not a space in the sense of Tcl's syntax def, i.e., as a separator between two Tcl words.
(This happens to me sometimes when I leave on my Mac Keyboard ALT pressed when hitting space.)
HTH, Stefan _______________________________________________ Xotcl mailing list Xotcl@alice.wu.ac.at http://alice.wu.ac.at/mailman/listinfo/xotcl