On 12/22/2009 01:12 PM, Jon Harrop wrote:
On Tuesday 22 December 2009 13:09:27 Goswin von Brederlow wrote:
The advantage with ocaml though is that you never have pointers into a
structure. Makes thinks a lot simpler for the GC and avoids large
overheads in memory.
I don't understand what you mean by OCaml "never has pointers into a
structure". Half the problem with OCaml is that OCaml almost always uses
pointers and the programmer has no choice, e.g. for complex numbers.

I think he means that ocaml structs (records, tuples) will only ever have pointers pointing to their beginning - you can't have a pointer to somewhere in the middle of a structure.

E

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to