Trouble with 'export word in module

主宰稳场 提交于 2019-12-11 02:44:49

问题


Let's mod.reb:

    REBOL[Type: module Name: mod]
    export: add 1 2

Let's test.reb:

    import 'mod

Running r3 test.reb, got:

    ** Script error: add has no value
    ** Where: do module catch case load-module apply for-each case import do either either either --anonymous--
    ** Near: ... add 3 2

Same trouble with other funcs instead of 'add.

No trouble with other names instead of 'export

No trouble inserting a dummy 'export before export: ... (!?)

Why this?

来源:https://stackoverflow.com/questions/40284088/trouble-with-export-word-in-module

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!