> dyamic scope (cool and fun). you are right. i just added it to ktye/k. now my symbols are numeric and i can always index into the global table. should be faster and even saved some code size.
dynamic scope is quite a bit simpler and cheaper in implementation than lexical. I've come to the conclusion that while lexical is easier to reason about in large programs, dynamic is not actually a liability for small ones.
i also intern all symbols now. their index also serves as an index into the global variable list. this is done at parse time, so there cannot be any undefined variables anymore.