简体   繁体   English

OCaml - 在Core中找不到Sys.big_endian值

[英]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.

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