RE: [Newbies] Should all methods return a value?

2006-05-09 Thread Ron Teitelbaum
From: Charles D Hixson Sent: Tuesday, May 09, 2006 1:16 AM I know that in some languages this matters, and in others it doesn't. If a method doesn't explicitly have a return value it will return self, but you should never count on that, small changes to the method will have a tendency to

Re: [Newbies] crossSum

2006-05-09 Thread David Shaffer
Enrico Schwass wrote: Hello First of all. The creation of this mailinglist was a very good idea. Reading the original list I always felt wrong, because of the very high level of questions and ... yes answers. Thanks :) Anyway. I was looking for a crossSum Method for Integers. e.g. 251 crossSum

[Newbies] Re: crossSum

2006-05-09 Thread Simon Kirk
Enrico Schwass wrote: Hello First of all. The creation of this mailinglist was a very good idea. Reading the original list I always felt wrong, because of the very high level of questions and ... yes answers. Thanks :) Anyway. I was looking for a crossSum Method for Integers. e.g. 251

[Newbies] [SimpleHierarchaelListMorph]

2006-05-09 Thread Steve Moffitt
This is being forwarded as Hernán is not a member of list.Hi Steve,ListItemWrapper was meant to be subclassed rather than used directly, and asyou said its not simple at all.Answering your question what you need to do is to have your ownListItemWrapper class and make it answer to #contents with

Re: [Newbies] Should all methods return a value?

2006-05-09 Thread Charles D Hixson
Yoshiki Ohshima wrote: Charles, Todd Blanchard wrote: The rule is, if you don't return a value, then self is returned. There's no such thing as a void message like in C++ or Java. Tell me what you want to do and I'll see if I can scare up some examples. On May 8, 2006, at

RE: [Newbies] Postgress Database connection

2006-05-09 Thread Ron Teitelbaum
Hello again cdrick, I believe you should be using the driver from http://map.squeak.org/package/a8d3ca99-f5f4-45e0-9aa7-100a77b64f45/autoversion/3 You should also load the cryptography package. You can either load the old one from squeakmap or the newer one from Monticello.  If you

Re: [Newbies] [Q] How should one concatenate Strings?

2006-05-09 Thread Damien Cassou
If you are building very long strings by using , in an inner loop, it can be slow because you will have an N squared algorithm. You can convert that into a linear time algorithm by writing to an WriteStream using nextPut: and nextPutAll: and then asking the WriteStream for its contents. It

[Newbies] crossSum, an alternative implementation

2006-05-09 Thread Markus Gaelli
Hi all, I just subscribed to the list and found that crossSum debate in the archives. I did an implementation a while ago for musinum, a fractal music generator, that can be found on squeakmap. (for a professional implementation see also http://reglos.de/musinum ) I did it this way: