Ticket #1929 (new bug)

Opened 4 years ago

Last modified 3 years ago

incorrect null-return from method calls

Reported by: plobsing Owned by:
Priority: normal Milestone:
Component: core Version: 2.11.0
Severity: medium Keywords: pcc
Cc: Language:
Patch status: Platform:

Description

Calling a method expecting one return value when the method returns none does not work as expected. The register should be filled with PMCNULL, or an exception should be thrown.

In stead, the register is filled with the invocant. While this allows for a nifty chaining accidental feature, this is not what is expected in these situations.

Attachments

method-call.pir Download (492 bytes) - added by plobsing 4 years ago.
test for proper nullary method return behaviour (using FileHandle.flush)

Change History

Changed 4 years ago by plobsing

test for proper nullary method return behaviour (using FileHandle.flush)

Changed 3 years ago by jkeenan

Can we get an update on the status of this ticket?

If the bug plobsing describes is real, then should we transform the patch into a test and TODO it?

Thank you very much.

kid51

Note: See TracTickets for help on using tickets.