Strict definition of value types and reference types
Nicholas Smith
nmsmith65 at gmail.com
Sat Apr 13 20:46:58 PDT 2013
On Sunday, 14 April 2013 at 02:51:35 UTC, bearophile wrote:
> slices are kind of hybrids between values and references. You
> can also think of them as fat references. When you program in D
> you must remember this nature of sliced, otherwise your code
> will not work...
>
> Bye,
> bearophile
Ali Çehreli uses slices as the first example for what a reference
type is in his "Programming in D". Perhaps that is not a good
example then.
More information about the Digitalmars-d-learn
mailing list