julia> typealias
ERROR: UndefVarError: typealias not defined
Run Code Online (Sandbox Code Playgroud)
它在 Julia:0.5 中有效,但在以上版本中无效
help?> typealias
search: typealias
Introduce a new name for an already expressible type. For example, in
base/boot.jl, UInt is type aliased to either UInt64 or UInt32 as appropriate
for the size of pointers on the system:
if is(Int,Int64)
typealias UInt UInt64
else
typealias UInt UInt32
end
For parametric types, typealias can be convenient for providing names in
cases where some parameter choices are fixed. In base for example:
typealias Vector{T} …Run Code Online (Sandbox Code Playgroud) julia> conn = connect(1234)
ERROR: UndefVarError: connect not defined
Stacktrace:
[1] top-level scope at REPL[1]:1
Run Code Online (Sandbox Code Playgroud)
更新后它不起作用,所以是否有任何新关键字被替换?
help?> connect
search: continue countlines count_ones
Couldn't find connect
Perhaps you meant convert, collect, const, count or conj
No documentation found.
Binding connect does not exist.
Run Code Online (Sandbox Code Playgroud) 我在 shell 命令中使用 mate 寻找 REQUIRE 文件,但找不到它。它与Pkg有关..
shell> mate ~/.julia/
compiled/ clones/ prefs/ registries/
environments/ conda/ logs/ packages/
Run Code Online (Sandbox Code Playgroud) julia> debug("hello")
ERROR: UndefVarError: debug not defined
Stacktrace:
[1] top-level scope at REPL[6]:1
Run Code Online (Sandbox Code Playgroud)
即使尝试使用 docker 也找不到合适的替代品。
help?> debug
search: @debug
Couldn't find debug
Perhaps you meant @debug, @enum, big or detach
No documentation found.
Binding debug does not exist.
Run Code Online (Sandbox Code Playgroud) Julia> type Circle
ERROR: syntax: extra token "Circle" after end of expression
Stack trace:
[1] top-level scope at none:0
Run Code Online (Sandbox Code Playgroud)
我已经尝试过 struct 方法,但它没有按要求工作。
julia ×5