[英]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
. 我刚刚意识到在打开Core.Std
时, val big_endian : bool
已从Sys
模块中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: 您可以使用包含标准库的Caml
模块访问vanilla OCaml Sys
模块:
let big_endian = Caml.Sys.big_endian
Anyway, it is really interesting, why they do not provided anything similar. 无论如何,这真的很有趣,为什么他们没有提供类似的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.