[nem-en] "FancyAssert" macro

Kannan Goundan cakoose at yahoo.com
Wed Jun 7 12:36:15 CEST 2006


When I program in Java and I write an "assert" statement, I usually
end up including the string value of all the involved parameters. 
Ex:

   assert i < j : "i = " + i + ", j = " + j;

This is pretty tedious to do manually.  I've attached a "FancyAssert"
macro implementation that tries to do the work for you.  I'm not
completely satisfied with it yet, but it does work.

The attached tarball contains the macro implementation in
"FancyAssert.n" and a test program in "Test.n".  Any comments on the
design or implementation would be appreciated.

- Kannan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NemerleAssert.tar.gz
Type: application/gzip
Size: 9560 bytes
Desc: 1513706440-NemerleAssert.tar.gz
Url : /mailman/pipermail/devel-en/attachments/20060607/048a0cf5/NemerleAssert.tar.bin


More information about the devel-en mailing list