Euphoria Ticket #555: Constant assign error

When a constant is assigned the value of a built-in function as the first statement of a program, it can cause the interpreted front end to crash. I think that a translated front end does not because it ends up accessing valid memory, but part of the sequence structure, not the sequence data, masking the error.

In other places, this might also lead to incorrect behavior:

constant cmds = command_line() 

Details

Type: Bug Report Severity: Normal Category: Front End
Assigned To: mattlewis Status: Fixed Reported Release:
Fixed in SVN #: 4714, 4715 View VCS: 4714, 4715 Milestone: 4.0.0

1. Comment by mattlewis Dec 17, 2010

The parser checks to make sure the last op was an ASSIGN before looking to see if it was a literal.

Search



Quick Links

User menu

Not signed in.

Misc Menu