New features (?)

For the Compleat Fan
Locked
Fanda
Posts: 253
Joined: Tue Aug 02, 2005 6:40 am
Contact:

New features (?)

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Locked