Version française
Home     About     Download     Resources     Contact us    
Browse thread
path prefixes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Keiko Nakata <keiko@k...>
Subject: path prefixes
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