Pre and Post contracts and signature constraints

Zardoz luis.panadero at gmail.com
Mon Jul 4 11:12:15 PDT 2011


On Mon, 04 Jul 2011 19:52:10 +0200, simendsjo wrote:

> On 04.07.2011 19:42, simendsjo wrote:
>>
>> The "in" should be in a block of it's own:
>>
>> T foo(T)(T a)
>> if(...) // notice no { here
>> in {
>> } body {
>> }
> 
> I of course mean that if should not create a new block.
Thanks !
I thought that the if () needs to make a block. :P




-- 
Yep, I'm afraid that I have a blog : zardoz.es


More information about the Digitalmars-d-learn mailing list