Memory allocation in D (noob question)

Janice Caron caron800 at googlemail.com
Fri Nov 30 22:41:41 PST 2007


On 12/1/07, mandel <oh at no.es> wrote:
> Why do we need to allocate space for them, too?

Raw pointers are discouraged in modern languages such as D. They are
the source of too many bugs. Use them if you need to do
down-and-dirty, under-the-hood stuff, but for general use, forget
pointers. Use arrays. They're safer.



More information about the Digitalmars-d mailing list