Re: Accessing peripheral registers - the next version

2016-08-27 Thread Mike via D.gnu
On Saturday, 27 August 2016 at 08:05:08 UTC, Timo Sintonen wrote: My question is: is this the way we should go? If it is, what would be the preferred name for this type? Also what would you think should be the module and file name? There was some discussion about the module and file names whe

Accessing peripheral registers - the next version

2016-08-27 Thread Timo Sintonen via D.gnu
I updated my system to gdc master. As expected, my program that uses shared variables to accress hardware registers did not work any more. I took the old Volatile datatype we made some years ago and the modified version is something like this: struct Volatile(T) { T raw; nothrow: