You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6763 Reporter: dsheets Assigned to:@garrigue Status: closed (set by @xavierleroy on 2016-12-07T10:49:05Z) Resolution: fixed Priority: normal Severity: minor Version: 4.02.1 Fixed in version: 4.02.2+dev / +rc1 Category: tools (ocaml{lex,yacc,dep,debug,...}) Monitored by:@gasche
Bug description
$ ocaml -short-paths
OCaml version 4.02.1
#show_module Hex;;
module Hex :
sig
val of_char : char -> char * char
val to_char : char -> char -> char
type t = [ `Hex of CamlinternalFormatBasics.char_set ]
val of_string : ?pretty:bool -> CamlinternalFormatBasics.char_set -> t
val to_string : t -> CamlinternalFormatBasics.char_set
end
but when using ocamlc:
$ ocamlfind ocamlc -package hex -i test_sp.ml
val of_char : char -> char * char
val to_char : char -> char -> char
type t = [ `Hex of string ]
val of_string : ?pretty:bool -> string -> t
val to_string : t -> string
$ ocamlfind ocamlc -short-paths -package hex -i test_sp.ml
val of_char : char -> char * char
val to_char : char -> char -> char
type t = [ `Hex of bytes ]
val of_string : ?pretty:bool -> bytes -> t
val to_string : t -> bytes
Steps to reproduce
Install 4.02.1 and use -short-paths with the toplevel.
Additional information
utop 1.17 (latest) has -short-paths on by default.
The text was updated successfully, but these errors were encountered:
Note that if you are talking about the fact string is turned into bytes (which is certainly not longer), this just follows the specification of short-paths: choose the equivalent path with the smallest number of dots, and the most recent one if the length is identical. Since in the unsafe environment bytes is defined as if it were
type bytes = string
this results in bytes being the most recent one.
Original bug ID: 6763
Reporter: dsheets
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2016-12-07T10:49:05Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
Fixed in version: 4.02.2+dev / +rc1
Category: tools (ocaml{lex,yacc,dep,debug,...})
Monitored by: @gasche
Bug description
$ ocaml -short-paths
OCaml version 4.02.1
#show_module Hex;;
module Hex :
sig
val of_char : char -> char * char
val to_char : char -> char -> char
type t = [ `Hex of CamlinternalFormatBasics.char_set ]
val of_string : ?pretty:bool -> CamlinternalFormatBasics.char_set -> t
val to_string : t -> CamlinternalFormatBasics.char_set
end
but when using ocamlc:
$ ocamlfind ocamlc -package hex -i test_sp.ml
val of_char : char -> char * char
val to_char : char -> char -> char
type t = [ `Hex of string ]
val of_string : ?pretty:bool -> string -> t
val to_string : t -> string
$ ocamlfind ocamlc -short-paths -package hex -i test_sp.ml
val of_char : char -> char * char
val to_char : char -> char -> char
type t = [ `Hex of bytes ]
val of_string : ?pretty:bool -> bytes -> t
val to_string : t -> bytes
Steps to reproduce
Install 4.02.1 and use -short-paths with the toplevel.
Additional information
utop 1.17 (latest) has -short-paths on by default.
The text was updated successfully, but these errors were encountered: