Retourner au contenu associé (journal : Les types fantômes)
Posté par Ontologia (site web personnel) le 03 septembre 2012 à 15:32. En réponse au journal Les types fantômes. Évalué à 2.
C'est très bizarre ! Voici mon transcript :
$ ocaml OCaml version 4.00.0 # module Foo : sig type 'a foo val inject : 'a -> 'a foo end = struct type 'a foo = 'a let inject x = x end ;; module Foo : sig type 'a foo val inject : 'a -> 'a foo end # Foo.inject [];; - : '_a list Foo.foo = <abstr> # Foo.inject 6;; - : int Foo.foo = <abstr> # module Foo : sig type +'a foo val inject : 'a -> 'a foo end = struct type 'a foo = 'a let inject x = x end ;; module Foo : sig type +'a foo val inject : 'a -> 'a foo end # Foo.inject [];; - : 'a list Foo.foo = <abstr> # Foo.inject 6;; - : int Foo.foo = <abstr> #
« Il n’y a pas de choix démocratiques contre les Traités européens » - Jean-Claude Junker
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: Un peu faible
Posté par Ontologia (site web personnel) . En réponse au journal Les types fantômes. Évalué à 2.
C'est très bizarre ! Voici mon transcript :
« Il n’y a pas de choix démocratiques contre les Traités européens » - Jean-Claude Junker