omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / ng / front / runs / p-longtext.om
| 1 | om2 |
| 2 | note a text with a long name handed to an unsized view parameter, and a long-named unsized parameter handed on |
| 3 | note (ledger L1143: front-ir did not lower an array name over 8 bytes). Stdout "selector"; status 8. |
| 4 | text selector_name "selector" |
| 5 | |
| 6 | fn count_bytes text_bytes view uchar * to ulong |
| 7 | ret len text_bytes |
| 8 | end |
| 9 | |
| 10 | fn show_and_count text_bytes view uchar * to ulong |
| 11 | written_bytes = write 1 text_bytes 0 len text_bytes |
| 12 | ret count_bytes text_bytes |
| 13 | end |
| 14 | |
| 15 | fn main to int |
| 16 | ret int show_and_count selector_name |
| 17 | end |