All checks were successful
akbasic CI Build / cmake_build (push) Successful in 3m50s
akbasic CI Build / coverage (push) Successful in 4m4s
akbasic CI Build / sanitizers (push) Successful in 4m48s
akbasic CI Build / akgl_build (push) Successful in 9m55s
akbasic CI Build / mutation_test (push) Successful in 17m50s
Reflow the approved reference cases, shorten local fixture comments, and split the executable docs line so the 80-byte input buffer can read every source line. Co-authored-by: andrew <andrew@aklabs.net>
15 lines
484 B
QBasic
15 lines
484 B
QBasic
10 REM A field name is checked against the type's closed set, which
|
|
20 REM is the one thing here whose valid spellings are written down.
|
|
30 REM A misspelled *variable* is still silent -- see the last two lines.
|
|
40 TYPE RECT
|
|
50 W#
|
|
60 H#
|
|
70 END TYPE
|
|
80 DIM R@ AS RECT
|
|
90 R@.W# = 3
|
|
100 PRINT R@.W#
|
|
110 REM A variable nobody assigned is zero, with no complaint at all.
|
|
120 PRINT TOTLA#
|
|
130 REM A field the type does not declare is refused, and lists the real ones.
|
|
140 PRINT R@.NOPE#
|