Pointers and offsets

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 14 01:54:35 PST 2015


On Wed, 14 Jan 2015 01:16:52 +0000
Bauss via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

> Is it possible to access a pointer by its offsets.
> Ex. write a 32bit integer to a byte pointer at ex. offset 4.
yes, it is. it's same as in c/c++, except that you have to add one
magic word: `cast`. D specs has it all.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150114/afb7b0ac/attachment.sig>


More information about the Digitalmars-d-learn mailing list