* path prefixes
@ 2007-09-17 12:56 Keiko Nakata
0 siblings, 0 replies; only message in thread
From: Keiko Nakata @ 2007-09-17 12:56 UTC (permalink / raw)
To: caml-list
Hello.
I can omit prefixing paths but for the first item for records:
i.e.
module M = struct type t = {x:int; y:int} end
let a = {M.x = 1; y = 2}
But can not I omit prefixing paths for datatypes?
i.e.
module M = struct type t = X | Y end
let f x = match x with M.X -> 1 | Y -> 2
The latter is also helpful; perhaps camlp4 helps me?
Sincerely,
Keiko
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-17 12:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 12:56 path prefixes Keiko Nakata
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox