简体   繁体   中英

OCaml - can't find Sys.big_endian value in Core

I just realized that val big_endian : bool is removed from the Sys module when opening Core.Std .

Where can I find a similar value?

You can get access to vanilla OCaml Sys module using Caml module that includes the standard library:

 let big_endian = Caml.Sys.big_endian

Anyway, it is really interesting, why they do not provided anything similar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM