On 09/09/2016 12:35 PM, pineapple wrote:
On Friday, 9 September 2016 at 11:54:42 UTC, Steven Schveighoffer wrote:
Can you demonstrate the issue? I have never heard of this. imports
should work when done inside a function.

-Steve

Tried and failed to reproduce with a simple example, but any time I've
tried doing it in the code I'm working on I get Symbol Undefined errors
which I had to fix by moving imports out of struct/class methods.

Are those maybe linker errors you're getting? It sounds like maybe the build system you're using, rather than the compiler, for some reason is rudimentary and isn't using the compiler itself to find dependencies. What build tool are you using?

Reply via email to