Skip to content

antoine-levitt/Exfiltrator.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PACKAGE IS NOT MAINTAINED

Similar functionality has been implemented in Infiltrator.jl. Please use that package instead of Exfiltrator.jl.

Exfiltrator

Build Status

Exfiltrator is the reverse of Infiltrator.jl. It allows you to "exfiltrate" local variables from a function into the global scope.

using Exfiltrator

julia> function f(x)
           @exfiltrate
       end
f (generic function with 1 method)

julia> f(2)

julia> x
2

Also supported are @exfiltrate VAR, which exfiltrates the local variables to the global variable VAR as a named tuple, @exfiltrate VAR x, which exfiltrates only x, and the @exfiltrate_push! ARR and @exfiltrate_push! ARR x which push the exfiltrated variables to a global array.

You can avoid typing using Exfiltrator by using it at the REPL and then using Main.@exfiltrate in your code.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages