You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help?> __init__
search: __init__
__init__
__init__() functionin your module would executes immediately after the module is loaded at runtime for the first time (i.e., it is only called once and only after all statements in the module have
been executed). Because it is called after fully importing the module, __init__ functions of submodules will be executed first. Two typical uses of __init__ are calling runtime initialization
functions of external C libraries and initializing global constants that involve pointers returned by external libraries. See the manual section about modules for more details.
Examples
≡≡≡≡≡≡≡≡≡≡const foo_data_ptr =Ref{Ptr{Cvoid}}(0)
function__init__()
ccall((:foo_init, :libfoo), Cvoid, ())
foo_data_ptr[] =ccall((:foo_data, :libfoo), Ptr{Cvoid}, ())
nothingend
The text was updated successfully, but these errors were encountered:
Leticia-maria
changed the title
Correct the __initi__ function to publish a new release
Correct the __init__ function to publish a new release
Jan 16, 2022
The text was updated successfully, but these errors were encountered: