smalltalk-3.1

putting character in a stream

Tagged:

Platform is Centos 5.2 64 bit version. GST 3.1.

This works...

               valueStream := ReadStream on: '7F'.
               stream := ReadWriteStream on: (String new).
               [valueStream atEnd] whileFalse: [
                       byte := (valueStream next digitValue * 16).
                       byte := byte + valueStream next digitValue.
                       byte printNl.
                       byte asCharacter ].

This works...

               valueStream := ReadStream on: '80'.   "change the number"

Inspect often fails

Tagged:

For example... myVar inspect.

- Calling inspect from a system without gst-blox doesn't always work. Sometimes it stack dumps.
- Calling inspect from a system with gst-blox will try to open a graphical "inspect" window. Sometimes this window shows in the operating system but no output appears in it and then after about 30 secs it disappears. Sometimes GST gets in a loop generating inspect windows.

System documentation is...

inspect
  Print all the instance variables of the receiver on the Transcript

This doesn't imply that an X Window will get opened.

Send Mail from within a NetClients socket handler fails

Tagged:

Script crashing when try and send an email from within a server socket handler.

System is GST 3.1 on Linux CentOS 5.2 64 bit.

To reproduce...
Set up a client and server as per...
http://sblinn.jottit.com/gnu_smalltalk_netclients-based_echo_server

At http://smalltalk.gnu.org/blog/swoolerton/mail-scripting-0 there is a class called SMTPHelper.

To see the fault, set the server atResponse method to something like this...

respondTo: aRequest [
 | session sessionSocket msg smtpHelper |
   "sending an email from the respondTo method crashes"

--enable-jit make fails

Tagged:

$ ./configure --enable-jit
$ make

/bin/bash ../libtool --tag=LIBGST --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DDEFAULT_EXECUTABLE=\""/usr/local/bin/gst"\" -I../lib-src -I../lib-src -I../libffi/include -I../libffi/include -I../snprintfv -I../snprintfv -I../sigsegv/src -I../sigsegv/src -I../lightning -I../lightning -I.. -I.. -g -O2 -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wwrite-strings -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -MT interp.lo -MD -MP -MF .deps/interp.Tpo -c -o interp.lo interp.c

Syndicate content

User login