Le Friday 27 June 2008 12:35:40 Stéphane Gimenez, vous avez écrit :
> The assert line won't be executed at all if one uses ocaml{c,opt}
> -noassert option, would it ? I guess the correct way to write this
> is:
>
> let result = Mutex.try_lock s.ready_m in
> assert (not result)
>
> Gim,
> who happens to read svn logs sometimes ;)
heh ! :-)
Sorry, I don't see the benefit in the second case...
The try_lock is really related to the test, so I don't want it to be done
outside of it. Then I guess it is correct in the first way..
By the way, what is the benefit of compiling without assert ? Should we
provide this as an option ? If yes, should it be the default ?
CCing -devl since this is aimed for all devels..
Romain
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl