On 1/30/12 5:39 PM, Gor Gyolchanyan wrote:
Wouldn't it be great if the compiler inserted the body of the unittest
ino the ddoc as an example?

At least for me, unit tests tend to be more complex/convoluted than example code, because they cover different edge cases, etc., so I'd rather go the opposite direction: allow automatic extraction of »Example:« blocks as unit tests (this has also been proposed for Phobos before).

David

Reply via email to