The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

__FUNCTION__: document inclusion of module-level let-bindings (#14412)

authored by

Nicolás Ojeda Bär and committed by
GitHub
2c82a9c9 380e454c

+11 -2
+11 -2
stdlib/stdlib.mli
··· 231 231 *) 232 232 233 233 external __FUNCTION__ : string = "%loc_FUNCTION" 234 - (** [__FUNCTION__] returns the name of the current function or method, including 235 - any enclosing modules or classes. 234 + (** [__FUNCTION__] returns a string of the form ["N0n1n2..."] where [N0] is the 235 + name of the current compilation unit and the [ni] are the names of the 236 + successive scopes leading to the location of the call. Each of the scopes 237 + has one of the following forms: 238 + 239 + - [.n] if [n] is the name of a function, module, class or value definition, 240 + or 241 + - [#n] if [n] is the name of a method, or 242 + - [.(fun)] if the scope corresponds to an anonymous function. 243 + 244 + Note that the precise format may change in the future. 236 245 237 246 @since 4.12 *) 238 247