imports in functions

Adam D. Ruppe destructionator at gmail.com
Sun Jun 12 14:33:34 PDT 2011


This is awesome!

Another benefit here is code running programs are simplified. For
"D script" kind of things, a technique I use is to simply wrap some
code inside a main function. Almost every feature worked there -
nested functions, structs, classes, etc. Now imports do too! Yay!


More information about the Digitalmars-d mailing list