General information
Category:
Coding, syntax & commands
Cindy:
> I looked in HackFox and didn't see mention of speed issues. Could be that
> the CASE statements are turned into IFs anyways.
No, they are not. One easy way to test this is to nest 65+ times
If a = 1 Then
Else
If a = 2 Then
Else
...
EndIf
EndIf
versus 65 cases of a do case.
The IF..ELSE..ENDIF won't compile because they are nested too deep but the DO CASE..ENDCASE will because it seems to only count once in the nest level. This extra DO CASE..ENDCASE functionality probably explains the sluggist performance of DO CASE..ENDCASE versus IF..ELSE..ENDIF.
Daniel
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only