Page 1 of 1

New features (?)

Posted: Fri Nov 18, 2005 6:50 am
by Fanda
Lutz, I read the Embedding Binary Code in newLISP:
http://newlisp.org/index.cgi?page=Embedded_Binary

and I saw that you use:

Code: Select all

(set 'bindata (pack "ccccccccccc" 
    0x55 0x8B 0xEC 0x8B 0x45 0x08 0x03 0x45 0x0C 0x5D 0xC3))
Tcl has a command 'binary format' which can actually use format-string with "c*"
http://tmml.sourceforge.net/doc/tcl/binary.html

I thought that it could be useful to have (pack "c*" x x x).

Fanda

PS: Is that example supposed to run on Win32? It crashes for me :(

PS2: There is a help for Tcl:
http://tmml.sourceforge.net/doc/tcl/index.html
and Tk online:
http://tmml.sourceforge.net/doc/tk/index.html

Posted: Sun Nov 20, 2005 4:28 pm
by Lutz
The 'embedded' binary stuff should run on Win32 and was tested on a WinXP Home machine, it should be able to run on all x86 CPU's and not be sensitive to different versions of OSs

Lutz