Skip to content

Commit c6cc226

Browse files
committed
Revised comments for initExpressionFnc and initExpressionGlobalFnc
to improve clarity and precision.
1 parent a291164 commit c6cc226

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FrontEndAst/DAst.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ type InitGlobal = {
330330
}
331331

332332
type InitFunction = {
333-
initExpressionFnc : unit -> string // an expression that provides the default initialization.
334-
initExpressionGlobalFnc : unit -> string // an expression that provides the default initialization.
335-
//It is usually present except of some rare cases such as an empty sequence (for C only) etc
333+
initExpressionFnc : unit -> string // an expression that provides the default initialization.
334+
initExpressionGlobalFnc : unit -> string // an expression that provides the default initialization for global constants.
335+
// Always present; for empty sequences returns backend-specific syntax (C: "{}", Ada: "(null record)", Scala: "TypeName()").
336336
initProcedure : InitProcedure0 option
337337
initFunction : InitProcedure0 option // an expression that initializes the given type to a default value.
338338
initGlobal : InitGlobal option // an expression that initializes the given type to a default value.

0 commit comments

Comments
 (0)