On 5/22/26 6:57 AM, Waldek Hebisch wrote: > On Tue, May 19, 2026 at 09:00:47PM +0800, Qian Yun wrote: >> Although this 'enterInCache' is not used in Kernel (the other >> signature is used), this is still a logical error. >> >> Because of the usage of DIFF elsewhere, we can not assume >> "1 + cache_use" is the biggest position. >> >> Instead, we should use logic like elsewhere: bump position >> by DIFF. > > It is not clear to me if we should consider this to be a bug, > AFAICS the intent was to choose and use one of 'enterInCache' > functions, not both together. And if you really what to > mix them, then adding DIFF is not enough. Multiplying by > DIFF probably would be enough. It is adding DIFF to the position of last element. Since cache is ordered by position, this will perfectly be fine.
- Qian -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/fricas-devel/ee78d50a-385a-43e1-aa34-68440d19a881%40gmail.com.
