v0.3.3: is lib word, UTF–8 string support

This commit is contained in:
Luxferre
2026-07-07 08:13:36 +03:00
parent 052d58b6f7
commit 836a7c5380
7 changed files with 37 additions and 7 deletions
+7 -1
View File
@@ -284,7 +284,13 @@ func (c *Clyx) cmdDefw() {
if isQForm { val = c.popCallerToken() }
}
if val == nil { val = c.pop() }
name := c.pop().(string)
nameVal := c.pop()
var name string
if s, ok := nameVal.(string); ok {
name = normToken(s).(string)
} else {
name = fmt.Sprintf("%v", nameVal)
}
c.words[name] = val
}