-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UndefVarError when referring to struct in closure dynamo #51
Comments
The first example seems like it must be an IRTools bug. I guess in We could fix these but I suspect you don't actually want that fix, based on the examples you've shown, so we might need to just discuss the use case a bit. |
Okay cool! It's very likely I'm trying to implement something in the wrong way. Basically, I've been trying to use a struct to control the IR transformation. Idiomatically, that would mean I'm writing something like
but here the dispatch on I would really like to be able to fill that I get the feeling there's a more elegant way to do this without the dynamo but I'm curious to hear your thoughts. |
Basically I can write:
and this will work, you can refer to c inside @dynamo.
But if I define the dynamo elsewhere in the library, I run into issues...
where I've defined a dynamo inside my library as
The text was updated successfully, but these errors were encountered: