如何获得julia宏的帮助?

时间:2014-03-21 03:17:26

标签: macros julia

我想知道如何获得Julia宏的帮助或者至少找到定义它的源文件。例如,我知道有一个宏@spawnat。 但是,如果我尝试做

> julia> help( @spawnat )  
ErrorException("wrong number of arguments")

> help( spawnat ) 
ErrorException("spawnat not defined")

哪个不好......

1 个答案:

答案 0 :(得分:5)

将其放在引号中:

julia> help("@spawnat")

给出

Base.@spawnat()

Accepts two arguments, "p" and an expression, and runs the
expression asynchronously on processor "p", returning a
"RemoteRef" to the result.

您可以使用help(help)获取有关帮助功能的帮助。

相关问题