Created
March 6, 2015 18:28
-
-
Save milktrader/3ef19c846a4c85fa1572 to your computer and use it in GitHub Desktop.
type factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> LIST = ["foo", "bar"] | |
2-element Array{ASCIIString,1}: | |
"foo" | |
"bar" | |
julia> for L in LIST | |
@eval begin | |
type ($L) | |
end | |
end | |
end | |
ERROR: syntax: invalid type signature | |
in anonymous at no file |
Author
milktrader
commented
Mar 6, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment