Hacker News new | ask | show | jobs
by alberte 3842 days ago
perhaps it's less of an issue in delphi (and pascal) since parameters that change in procedures have the var keyword?

In practice it doesn't seem to cause issues since pretty well every thing is a pointer, the only time it causes a problem is if you're using records. The compiler does catch this but, yes, in this case it is sub optimal. It's a trade off I suppose - 95-99.9% of the time your using classes so the '.' is everywhere rather than ->.