2017-03-14 5 views
3

다른 모듈의 명명 된 모듈에서 내 보낸 단어를 사용하는 방법의 예를 찾고 있습니다.명명 된 모듈의 단어를 다른 모듈의 내부에서 사용하는 방법?

REFINEMENTS: 
/version 
ver [tuple!] 
    Module must be this version or greater 
/check 
sum [binary!] 
    Match checksum (must be set in header) 
/no-share 
    Force module to use its own non-shared global namespace 
/no-lib 
    Don't export to the runtime library (lib) 
/no-user 
    Don't export to the user context 

그것이 가져 오기/더-LIBLIB 맥락에서 가져온 단어를 배치하지 않는 것을 제안 수입의 도움에서

, 그래서 그 자체로 수입이해야? 그러나 그렇지 않습니다.

이 작동하지만 가져 오기 자체가 작동해야합니다.

import/no-lib %my-named-module.reb 
append lib compose [f: (:my-exported-function)) 

및 I는

+0

[이 Q/A] (http://stackoverflow.com/questions/14420942/how-are-words-bound-within-a-rebol-module)을 보았습니까? – giuliolunati

+0

@giuliolunati 설명대로 작동하지 않는다고 생각합니다. 내보내기가 단어로 존재하지 않습니다. –

답변

1

F/LIB를 사용하여 기능을 액세스 할 수 있으며, 모듈 1

단어 1에 ...

]의 모듈 2

MOD1 : 수입 ' 모듈 1

word1 :: mod1/word1

+0

알아, 그 대답은 * 수출 * 단어에 국한되지 않습니다 ... – giuliolunati