bugPSPP - Bugs: bug #17422, COMPUTE creates variable only...

 
 

bug #17422: COMPUTE creates variable only after command parsing finished

Submitted by:  Ben Pfaff <blp>
Submitted on:  Mon 14 Aug 2006 01:27:43 AM UTC  
 
Category: Syntax ParserSeverity: 5 - Average
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: Before 0.6.0
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 01 Dec 2006 06:51:25 AM UTC, comment #1:

We believe that this problem is fixed in a change recently
checked into the CVS respository. If you discover that the bug
has not been fixed, please re-open the bug.

Thank you for your help in improving PSPP.

Ben Pfaff <blp>
Project Administrator
Mon 14 Aug 2006 01:27:43 AM UTC, original submission:

The following syntax:

DATA LIST /ITEM 1-3.
COMPUTE SUM=SUM+ITEM.
PRINT /ITEM SUM.
LEAVE SUM
BEGIN DATA.
123
404
555
999
END DATA.

yields this error:

test.pspp:2: error: COMPUTE: Unknown identifier SUM.

because the variable SUM is only created after the COMPUTE command has been fully parsed, but it should succeed.

Ben Pfaff <blp>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by blp (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 01 Dec 2006 06:51:25 AM UTCblpStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 14 Aug 2006 01:35:37 AM UTCblpReleaseNone=>Before 0.6.0
    Mon 14 Aug 2006 01:27:43 AM UTCblpCarbon-Copy-=>Added josephsaintpierre

    Back to the top


    Powered by Savane 3.1-cleanup1