You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the second if ... then ... else ... statement, False is only syntactically active right now.
When a boolean primitive (True & False), is encountered, a corresponding value should be pushed onto the active register stack. E.g. False should produce '0' and True should produce '1'. When a primitive is encountered, the minimum following changes need to occur:
LastType(TYPE_BOOLEAN) and LastConstructor(TYPE_BOOLEAN) is recorded in the context manager
LastData(x) is recorded in context manager, where x==1 or x==0 depending on True/False
LastExpression(EXP_LITERAL) is recorded in Context Manager
The active register stack seems to allocate a new register when boolean literals are encountered, so that shouldn't need any attention.
NOTE: This effect should also trigger when a constant or function is invoked (if it returns a boolean literal value).
The text was updated successfully, but these errors were encountered:
(See tests/Conditions/if.xs)
In the second
if ... then ... else ...
statement,False
is only syntactically active right now.When a boolean primitive (
True
&False
), is encountered, a corresponding value should be pushed onto the active register stack. E.g.False
should produce '0' andTrue
should produce '1'. When a primitive is encountered, the minimum following changes need to occur:LastType(TYPE_BOOLEAN)
andLastConstructor(TYPE_BOOLEAN)
is recorded in the context managerLastData(x)
is recorded in context manager, where x==1 or x==0 depending on True/FalseLastExpression(EXP_LITERAL)
is recorded in Context ManagerThe active register stack seems to allocate a new register when boolean literals are encountered, so that shouldn't need any attention.
NOTE: This effect should also trigger when a constant or function is invoked (if it returns a boolean literal value).
The text was updated successfully, but these errors were encountered: