<div dir="ltr"><div>So I resolved to learn D, and try code as idiomatically as I could.<br><br></div>So here is a trivial module that encodes and decodes roman numerals.<br><div><div><div><br clear="all"><a href="https://bitbucket.org/JohnCarter/roman/src/9ec5b36b9973426f35b0ab9dfd595cb3b305e39e/roman.d?at=default">https://bitbucket.org/JohnCarter/roman/src/9ec5b36b9973426f35b0ab9dfd595cb3b305e39e/roman.d?at=default</a><br>
<br></div><div>I also attempted to do it in "Best Practice Test Driven Development" form with commits on every change.<br><br>So you can see the blow by blow history of how it grew.<br></div><div><br></div><div>
I would welcome any critique, advice, flames, recommendations, etc. etc.<br></div><div><br></div><div>Thanks for your help and patience with various stupid newbie questions I asked in the process!<br></div><div><br>-- <br>
<div dir="ltr">John Carter<br>Phone : (64)(3) 358 6639<br>Tait Electronics <br>PO Box 1645 Christchurch<br>New Zealand<br><br></div>
</div></div></div></div>
<br>
<hr><font color="#808080">This email, including any attachments, is only
for the intended recipient. It is subject to copyright, is confidential
and may be the subject of legal or other privilege, none of which is
waived or lost by reason of this transmission.</font><div><font color="#808080">If
you are not an intended recipient, you may not use, disseminate,
distribute or reproduce such email, any attachments, or any part
thereof. If you have received a message in error, please notify the
sender immediately and erase all copies of the message and any
attachments.</font></div><div><font color="#808080">Unfortunately, we
cannot warrant that the email has not been altered or corrupted during
transmission nor can we guarantee that any email or any attachments are
free from computer viruses or other conditions which may damage or
interfere with recipient data, hardware or software. The recipient
relies upon its own procedures and assumes all risk of use and of
opening any attachments.</font></div><div><hr></div>