change the way to read a token beginning with a colon.

added more primitive functions to the core module
This commit is contained in:
2025-09-26 00:32:33 +09:00
parent 4c000c2c9c
commit 0128fe88dc
13 changed files with 250 additions and 75 deletions

View File

@ -346,3 +346,12 @@ class[#b] X (a) {
class Y: X { ##ERROR: exception not handled - "incompatible byte superclass X with oop class"
}
---
## you can't send a binary message to an object the receiver:message syntax.
## you must omit the colon for the binary message
## it must be '20 == 40'
fun Number:==(b) { return (core.+ self b) }
20 :== 40 ##ERROR: syntax error - prohibited binary selector '=='