Enum not at top level expression

Ahmed_Salih
Sat, 13 Apr 2019 19:34:43 +0000
New to Julia

Hello guys!

I have something like this:

So basically an enum array, where a specific enum like “Points” refers to a string and type “POINTS” / Float32. My question is:

If I try putting this in the main function I get a not at toplevel error, so is it in any way possible to insert this inside a function through some work around? I want it to be not assigned in the global scope.

Kind regards

8 posts - 4 participants