math shugar in repl #391

Closed
opened 2026-04-05 03:45:46 +00:00 by navicore · 1 comment
navicore commented 2026-04-05 03:45:46 +00:00 (Migrated from github.com)

I'm not sure if this is limited to the repl or if it is in all code, but the new math sugar where you can say > instead of i.> doesn't compile in the repl if used in a function.

seq> : longer-than-five? ( String -- Bool ) string.length 5 >;
Word 'longer-than-five?' is defined multiple times:
- :8
- :10

Hint: Rename one of the definitions to avoid collision.
seq> : longer-than-five2? ( String -- Bool ) string.length 5 >;
Clang compilation failed:
/var/folders/kf/bs6zj8px2kx7hybxgvzj1f2h0000gn/T/.tmpjenw7m.ll:368:1: error:
expected instruction opcode
368 | }
| ^
1 error generated.
seq>

I'm not sure if this is limited to the repl or if it is in all code, but the new math sugar where you can say > instead of i.> doesn't compile in the repl if used in a function. seq> : longer-than-five? ( String -- Bool ) string.length 5 >; Word 'longer-than-five?' is defined multiple times: - :8 - :10 Hint: Rename one of the definitions to avoid collision. seq> : longer-than-five2? ( String -- Bool ) string.length 5 >; Clang compilation failed: /var/folders/kf/bs6zj8px2kx7hybxgvzj1f2h0000gn/T/.tmpjenw7m.ll:368:1: error: expected instruction opcode 368 | } | ^ 1 error generated. seq>
navicore commented 2026-04-05 03:46:10 +00:00 (Migrated from github.com)

@navicore-bot can you work this issue?

@navicore-bot can you work this issue?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
navicore/patch-seq#391
No description provided.