Euphoria Ticket #625: Negative sequence subscripts are accepted

The following code should not run.

sequence s = {1,2,3,4,5} 
? s[-3 .. -2]  


Currently it prints {2,3} but it should give an error message because any subscript value less than 1 is invalid.

Details

Type: Bug Report Severity: Normal Category: Interpreter
Assigned To: DerekParnell Status: Fixed Reported Release: 4.0
Fixed in SVN #: View VCS: none Milestone: 4.0.1

1. Comment by DerekParnell Mar 01, 2011

See: hg:euphoria/rev/8e57047e4230

changeset: 4683:8e57047e4230 branch: 4.0 tag: tip user: DerekParnell date: Wed Mar 02 00:23:45 2011 +1100 files: source/be_runtime.c description: fixes ticket:625 Negative subscript no longer permitted

2. Comment by mattlewis Mar 01, 2011

See: hg:euphoria/rev/7c8295662665

changeset: 4684:7c8295662665 branch: 4.0 user: Matt Lewis date: Tue Mar 01 09:19:55 2011 -0500 files: docs/release/4.0.1.txt description:

  • release notes for ticket 625

Search



Quick Links

User menu

Not signed in.

Misc Menu