I recently wrote about write-only ports and discussed how they worked and the challenges presented to software developers who need to program them. The solutions proposed were quite straightforward, but the challenge remained to ensure that all the code utilizing the ports complied with the requirements.
I commented at the time that there are several ways to mandate the correct handing of write-only ports, but an approach that interested me was the use of C++ … (more…)