36 ms·
> Can you give an example of how this capability in CL is used? Common Lisp for example can extract/set a byte given its width and its position: CL-USER 1
by lispm 10y ago
> Can you give an example of how this capability in CL is used?
Common Lisp for example can extract/set a byte given its width and its position:
CL-USER 145 > (write (ldb (byte 11 2) #b1100101011010110) :base 2)
1010110101
(byte 11 2) is a specifier for this: 11 = width, 2 = position.
Historically this comes form a DEC PDP-10 instruction 'load byte'.