Project

Profile

Help

Bug #5549

closed

Function caching is not applied to tail calls

Added by Michael Kay almost 2 years ago. Updated 13 days ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2022-05-30
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

If a function f contains a tail-call to a function g, and g is defined with cache="yes", then the cache is ignored and g is executed normally.

See TailCallLoop.tailCallDifferentFunction()

(Test case function-1035. I modified the test to make the call not be a tail call; undo this change to demonstrate the problem)

Actions #1

Updated by Michael Kay 13 days ago

  • Status changed from New to Closed

It seems that this bug was fixed as a consequence of the changes to introduce elaborated evaluation. The test case is now working.

Please register to edit this issue

Also available in: Atom PDF