Mercurial > projects > dstress
view compile/c/const_46_A.d @ 1417:b9844b283021
Re: Compile time function execution...
Lionello Lunesu <lio@lunesu.remove.com>
2007-02-16
http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48917
author | thomask |
---|---|
date | Sun, 11 Mar 2007 11:09:34 +0000 |
parents | |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Lionello Lunesu <lio@lunesu.remove.com> // @date@ 2007-02-16 // @uri@ http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48917 // @desc@ Re: Compile time function execution... module dstress.compile.c.const_46_A; bool func() { return true; } static if (!func()) { static assert(0); }