New features (?)

Started by Fanda, November 17, 2005, 10:50:33 PM

Previous topic - Next topic

Fanda

Lutz, I read the Embedding Binary Code in newLISP:

http://newlisp.org/index.cgi?page=Embedded_Binary">http://newlisp.org/index.cgi?page=Embedded_Binary



and I saw that you use:
(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">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">http://tmml.sourceforge.net/doc/tcl/index.html

and Tk online:

http://tmml.sourceforge.net/doc/tk/index.html">http://tmml.sourceforge.net/doc/tk/index.html

Lutz

#1
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