1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-25 03:16:44 +00:00

Allow text literals in more positions

This commit is contained in:
Karol Stasiak
2019-07-27 01:38:06 +02:00
parent bb5c633172
commit 8922beda00
4 changed files with 27 additions and 20 deletions
+2 -6
View File
@@ -9,13 +9,9 @@ struct stage {
pointer text
}
// can't put text literals directly in struct constructors yet
array fizz = "fizz"z
array buzz = "buzz"z
array(stage) stages = [
stage(divisible3.pointer, fizz),
stage(divisible5.pointer, buzz)
stage(divisible3.pointer, "fizz"z),
stage(divisible5.pointer, "buzz"z)
]
void main() {