bugKawa - Bugs: bug #39059, Method keywords problem

 
 

bug #39059: Method keywords problem

Submitted by:  Matthieu Vachon <maoueh>
Submitted on:  Fri 24 May 2013 02:23:16 AM UTC  
 
Category: Code generationSeverity: 3 - Normal
Item Group: Unexpected resultStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 25 May 2013 11:56:25 PM UTC, comment #2:

Works like a charm, thank you.

Matthieu Vachon <maoueh>
Sat 25 May 2013 07:57:42 PM UTC, comment #1:

Oops. This is because in LambdaExp's enterFunction we failed to increment the key_i index if the parameter is "ignorable".

I checked in a fix and test-case.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Fri 24 May 2013 02:23:16 AM UTC, original submission:

I define a method taking keyword arguments, when I retrieve one without retrieving another one, the completely wrong value is returned. It looks like there is a big problem with bindings.

Take the following example:

It prints

The second line should have been "C => c". This happens in 1.12 and latest version.

Uncommenting the commented line make it works correctly though.

Also, maybe related, maybe not, using and invalid keyword works also, maybe because bindings is not done at the right index. For example, this call `(small a: "a" b: "b" invalid-c: "c")` also gives:

For a big test case, order is even stranger:

Will print the following (all wrong) output:

I attached my test script.

Regards,
Matt

Matthieu Vachon <maoueh>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #28154:  keywords-problem.scm added by maoueh (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by maoueh (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 May 2013 07:57:42 PM UTCbothnerCategoryNone=>Code generation
      Item GroupNone=>Unexpected result
      StatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed
    Fri 24 May 2013 02:23:16 AM UTCmaouehAttached File-=>Added keywords-problem.scm, #28154

    Back to the top


    Powered by Savane 3.1-cleanup1