caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Not really a bug but...
@ 2007-06-16  0:17 Jon Harrop
  2007-06-16  7:30 ` [Caml-list] " Alain Frisch
  0 siblings, 1 reply; 7+ messages in thread
From: Jon Harrop @ 2007-06-16  0:17 UTC (permalink / raw)
  To: caml-list


Any chance of changing the semantics of string literals so they aren't static?

# let f() = "a";;
val f : unit -> string = <fun>
# let s = f();;
val s : string = "a"
# s.[0] <- 'b';;
- : unit = ()
# f();;
- : string = "b"

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?e


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-06-16 17:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-16  0:17 Not really a bug but Jon Harrop
2007-06-16  7:30 ` [Caml-list] " Alain Frisch
2007-06-16 10:02   ` Christophe TROESTLER
2007-06-16 10:10   ` Loup Vaillant
2007-06-16 15:59     ` Richard Jones
2007-06-16 17:01     ` skaller
2007-06-16 17:03       ` Jon Harrop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).