mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-11 07:00:58 +08:00
![]() This commit implements list addition. A new list is allocated, and the contents of l1 and l2 are concatenated onto the list. This is done by extending the buffer template macro to support a `concat` operation, which given an `other` buffer, appends all elements of the `other` buffer to the end of the `self` buffer. Allocations are done as needed. We implement this additional operation, since the alternative would be to call `reserve()` for each `write()` operation, which doesn't seem ideal. Issue: #55 |
||
---|---|---|
.. | ||
include | ||
pk_buffers.h | ||
pk_common.h | ||
pk_compiler.c | ||
pk_compiler.h | ||
pk_core.c | ||
pk_core.h | ||
pk_debug.c | ||
pk_debug.h | ||
pk_opcodes.h | ||
pk_utils.c | ||
pk_utils.h | ||
pk_var.c | ||
pk_var.h | ||
pk_vm.c | ||
pk_vm.h |