version(Main) like python's __name__ == "__main__"

Lionello Lunesu lio at lunesu.remove.com
Thu Nov 22 00:59:46 PST 2007


Dan wrote:
> Walter implemented something better called "unittest".
> 
> Although I wish you could execute JUST a unittest, and only for one unit...

I agree that it's similar, but not quite:

I think it's shady for a unittest to make internet connections and such, 
but it would be fine for a small test app. It could use command line 
arguments for the URL or any file it wants to open/create. That's not 
something a unittest can do.

L.



More information about the Digitalmars-d mailing list