Re: Welcome to the "help-smalltalk" mailing list (Digest mode)

2022-06-24 Thread Tommy Pettersson
On Thu, Jun 23, 2022 at 03:31:05PM +, Luis L wrote: > Is it preferable to return super init rather than just have > it as a statement in the initialization method and allow the > implicit self to return? Hi Luis, I think it is just a matter of style. I would personally not code

Re: [Help-smalltalk] Process & Fork

2019-07-21 Thread Tommy Pettersson
If it's not working with a delay in the main process it sounds like a bug. What if you put a counter in the main process and print it as well, does the main process stop too, or is it just the forked process? Btw, on my Linux machine your original example works the way you expect. I get the

Re: [Help-smalltalk] Process & Fork

2019-07-20 Thread Tommy Pettersson
Hi Quenio, I can't speak for GNU Smalltalk, but yield in general is a tricky business, and does often not mean what one might think. A good way of thinking of yield is: "Hi scheduler, I'm not done yet, but if you have something important to do, I will yield now". In particular, yield MAY be a

Re: [Help-smalltalk] 'ZeroDivide' error using debian package

2018-08-15 Thread Tommy Pettersson
On Mon, Aug 13, 2018 at 09:48:30AM +0100, Holger Freyther wrote: > Could you try > http://git.savannah.gnu.org/cgit/smalltalk.git/commit/?id=72ada189aba0283c551ead16635c1983968080b8? I have used system libsigsegv libffi and libltdl, because this is what the Gentoo distribution uses, and their

Re: [Help-smalltalk] Bug, float is printed wrongly

2018-08-11 Thread Tommy Pettersson
Hi Bill, I think the ZeroDivide exception is unrelated, and caused by your gst being compiled with option -pie (the default in many distros). If so, you would get the same exception for 0.05 and many other numbers. Try compiling gst with -no-pie to see if the exception goes away. /Tommy

[Help-smalltalk] Bug, float is printed wrongly

2018-08-11 Thread Tommy Pettersson
Hi, The float 1e-4 gets too many zeros when printed. This happens on version 3.2.5 and on the current master branch at git://git.sv.gnu.org/smalltalk.git, on both 32-bit and 64-bit. Example: st> x := 1e-4 0.1 st> x+x 0.0002 Kind regards, Tommy

[Help-smalltalk] [PATCH] bugfix for Promise >> printOn:

2017-04-14 Thread Tommy Pettersson
Hi list, I just subscribed, and this is my first post to the list. The class Promise has a bug in printOn:. It is supposed to print '(???)' if its value is not yet known. A missing return causes it to continue to print the actual value, which will hang until the value is known. Same problem if