This intentionally cannot be done in local scope. Julia doesn't do
reification of local scopes.

On Wed, Jan 27, 2016 at 7:30 PM, Fady Shoukry <[email protected]>
wrote:

> Hey everyone,
>
> As the subject line suggests, I am trying to programmatically create
> variables from a supplied dictionary in a function. I am aware that I can
> use eval() but eval will generate global variables which is something I am
> trying to avoid for its performance disadvantages. Here is an example of
> what I am trying to accomplish.
>
> function defVariables(dict::Dict{Symbol}{Any})
>     # This function should define the variables as follows:
>
>

Reply via email to