ocaml / ocaml

The core OCaml system: compilers, runtime system, base libraries
https://ocaml.org
Other
5.19k stars 1.06k forks source link

manual: document `poll` built-in attribute #13092

Closed Octachron closed 1 month ago

Octachron commented 1 month ago

This small PR adds a laconic documentation for the poll attribute in the manual, in order to at least document the existence of this built-in attribute.

nojb commented 1 month ago

While playing with this attribute, I noticed that (on 4.14 at least), the attribute is only accessible through poll, not ocaml.poll, like other built-in attributes. Is this expected?

Octachron commented 1 month ago

This is was fixed in 5.2 by #12451 which uniformized the handling of all built-in attributes.

nojb commented 1 month ago

This is was fixed in 5.2 by #12451 which uniformized the handling of all built-in attributes.

I had missed this, thanks!