1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-19 17:47:53 +03:00

bbc-basic: Allow metadata on non-function types.

This is currently broken, but it passes all the tests, so I'll need
some better tests.
This commit is contained in:
Ben Harris 2019-05-14 23:19:26 +01:00
parent 05628a32d8
commit 9386894d6a

View File

@ -241,11 +241,11 @@ DEF FNcore_call(fn%, args%)
=FNalloc_string(arg$)
DATA meta, 52
WHEN 52
PROCcore_prepare_args("f", "meta")
PROCcore_prepare_args("?", "meta")
=FNmeta(args%(0))
DATA with-meta, 53
WHEN 53
PROCcore_prepare_args("f?", "with-meta")
PROCcore_prepare_args("??", "with-meta")
=FNwith_meta(args%(0), args%(1))
DATA time-ms, 54
WHEN 54