Hi Damian, You can use `compilerAssert` if the boolean statement can be evaluated at compile time.
Engin On 12/29/19, 7:41 PM, "Damian McGuckin" <[email protected]> wrote: I want to do something like assert(x.type == T); but have it executed at compile time. Does such a function exist? Regards - Damian Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037 Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here Views & opinions here are mine and not those of any past or present employer _______________________________________________ Chapel-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-developers _______________________________________________ Chapel-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-developers
