How ptr arithmitic works??? It doesn't make any sense....

rempas rempas at tutanota.com
Mon Dec 5 06:12:44 UTC 2022


On Sunday, 4 December 2022 at 16:40:17 UTC, ag0aep6g wrote:
>
> Not quite. Adding 10 to a T* means adding 10 * T.sizeof.

Oh! I thought it was addition. Is there a specific reasoning for 
that if you are aware of?


More information about the Digitalmars-d-learn mailing list