v0.3.3: is lib word, UTF–8 string support
This commit is contained in:
+7
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user