http://d.puremagic.com/issues/show_bug.cgi?id=2630
------- Comment #1 from [email protected] 2009-01-28 17:34 ------- Sounds a lot like doctests that are becoming popular in Python. http://en.wikipedia.org/wiki/Doctest There the roles are reversed from what you are talking about. Some examples in the doc are made to run as unit tests, instead of making some unittests into doc. I think your version sounds simpler to get working in D, but the other way seems ultimately more useful to me. It allows you to interleave the examples with the documentation of the function more naturally. --
