not expected pointers for struct members from foreach

bearophile bearophileHUGS at lycos.com
Tue Oct 9 16:36:42 PDT 2012


deed:

> Meaning struct pointers are unusable or at least highly
> unreliable?

Struct pointers are useful and reliable, but before using them 
you need to know the difference between heap and stack, what a 
stack frame is, and how structs are handled when they are on the 
stack. Learning the basics of such things ideas requires only few 
minutes and it will be useful for many years.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list