Pointer arithmetic
Kyle Furlong
kylefurlong at gmail.com
Mon Oct 15 13:57:34 PDT 2007
Frits van Bommel wrote:
> Michal wrote:
>> Hi, Im new to D language, and Im wondering if there is pointer
>> arithmetic. I think its very useful thing, sometimes more convenient
>> than [].
>
> Pointer arithmetic works, but (obviously) only when you're actually
> using pointers.
> However between class references, real array types and ref (aka
> inout)/out parameters, raw pointer usage in D programs is typically very
> low (and is normally discouraged unless there's no other way).
That being said, D can be used as a better C. (no preprocessor, modules,
etc.)
More information about the Digitalmars-d
mailing list