Bug Report 2002/02/24-v1.0b28-br01


[MAIN]
[News]
[Intro]
[Features]
[Download]
[Installation]
[Support]
[Support+]
[Docu]
[Tutorial]
[Bugs]
[forum ]
[wiki]
[Mirror]
[Authors]
[Future]
[License]
[Win98 Setup Bug]
[Subscribe]
Bug Report id=2002/02/24-v1.0b28-br01
Affected versions:v1.0b28 and previous versions
Severity:Low

Bug Description

The ScriptBasic interpreter does not recognize syntax error when an expression list is finished with a trailing comma. For example
print "hello",

is accepted by the interpreter and is executed as the trailing comma was not there.

Bug Reason, What Causes the Bug

Coding error in the syntax analysis of expression lists. The code returns error if there is an error in the first expression but does not if there is an error in any of the following expressions.

Solution

The next release will deliver a corrected version. The modification to the file expression.c needed:
1475a1476
>     if( r->rest == NULL )return NULL;

Bug Workaround Until Solution is Available

There is no need for workaround.

Acknowledgement

N/A

This page was generated January 28, 2010 9:58:44