(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia, ::REPL.LineEdit.MIState) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/
/REPL.jl:139
in (::Base.REPL.##22#23{Bool,Base.REPL.##33#42{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?in run_frontend(::Base.REPL</e
我想在REPL中查看方法的定义。我点击了这个链接(),但它不起作用:f (generic function with 1 method)
f (genericfunction with 1 method)
# 1 method for generic function "f":
f(x) at REPL[155]:1, ::Base.REPL</em
是否可以访问在julia中另一个函数中定义的函数?end
8
ERROR: type #f has no field gin eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
in macro expansion at ./REPL.jl:95 [in
julia> f() = 1f (generic function with 1 method)
ERROR: UndefKeywordError: keyword argument arg not assigned [1] f() at ./REPL[2]:1
[2] top-level scope at REPL
朱莉娅0.5.1macro wat() type Foo end global function bar2() type Baaz endend
Foo()bar()现在,当我运行这一行时,最后一行会崩溃,因为bar2是未定义的。我不明白为什么,因为在我的理解中,bar()和bar2()应该相等,而bar只是bar2的语法糖。但是,它们显然