Skip to content
Tcl Source Code Update of ”branch/arith-series-bytecode”
Login

Update of ”branch/arith-series-bytecode”

Overview

Artifact ID: 4f14e1451430f7367e343d1fc7c8b866f350fea7aa36c6297d84d8e210e2cd4c
Page Name:branch/arith-series-bytecode
Date: 2025-06-17 08:22:00
Original User: dkf
Mimetype:text/x-markdown
Parent: 5858b8ddf4768905c1c7fb1e93db5520dfd7c9462ecc52b1ad34dfc61402b538 (diff)
Content

This branch is about making lseq, a substantially complex command, have it's own bytecode instruction.

The semantics of lseq around expressions (why does the TIP have to specify magical stuff there, when expr could have just been explicit?) and the details of how it handles NaN arguments are messy, but by splitting most of that into a separate function, TEBC isn't too bad. I am satisfied that the opcode represents a good way to do it; the target API wants NULL in some places.