Version française
Home     About     Download     Resources     Contact us    
Browse thread
"let module" missing in class expressions.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christian RINDERKNECHT <rinderkn@h...>
Subject: "let module" missing in class expressions.
Hello,

I have a little wish for the next release: I would appreciate the
construct "let module " to be allowed in class expressions...

At the moment I get:

        Objective Caml version 2.02

# class c =
    let module M = struct end
        ^^^^^^
  in object end
  ;;
Syntax error
#

Note that this works in "initializer" clauses:

# class c =
    object
      initializer
        let module M = struct end
        in ()
    end
  ;;
class c : object end
# 


Best regards,


Christian

-----------------------------------------------------------------------
Christian Rinderknecht                     Phone +33 (0)1 60 76 44 43
Institut National des Télécommunications   Fax   +33 (0)1 60 76 47 11
Département Logiciels Réseaux (LOR)        WWW
9, Rue Charles Fourier, F-91011 Évry Cedex