> Op Wed, 27 Feb 2008, schreef Marco van de Voort: > > > function ByteIO(var p):puchar; inline; > > > > begin > > result:=puchar(@p); > > end; > > > const port = puchar(_port); // !??!? > > port^:=$55; > > Nope, don't forget that we have a nice arsenal of constructs to do system > programming, like the mem array, the port array, absolute etc. The above > can be replaced by: > > mem[_port]:=$55;
I know, but I thouht it was mainly about the typing. Most importantly that you can access this bitwise using e.g. ptrs to bitpacked arrays. One sees this a lot in embedded C too. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel