Hello,
I have a real dummy question! Beside other "smalltalks" I actually tried GNU Smalltalk under OpenSUSE 10.3 on an AMD XP Machine: localhost:~> gst -v GNU Smalltalk version 2.1.12 Copyright 2003 Free Software Foundation, Inc. Written by Steve Byrne ([hidden email]) and Paolo Bonzini ([hidden email]) GNU Smalltalk comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Smalltalk under the terms of the GNU General Public License. For more information, see the file named COPYING. Using default kernel path: /usr/share/smalltalk/kernel Using default image path: /usr/share/smalltalk The GUI (gst -qK browser/Run.st) works as usual for smalltalk." 'Hello, world' printNl" in the worksheet gives the expected output in the transcript window. I tried the example of the Tutorial (http://www.gnu.org/software/smalltalk/manual/gst.html#Getting-started) in the line interpreter as well (or is it not a command line interpreter?): localhost:~> gst GNU Smalltalk ready st> 'Hello, world' printNl st> But as one sees from that copy there happens absolutely nothing! That is also true for "123456 printString", "6 + 7" and other trial inputs. If this is not a line interpreter I argue that it is only possible to start files with a "shebang" or “sharp-bang”? Where is may error? Thanks in advance for help and best regards Bernhard _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (262 bytes) Download Attachment |
> st> 'Hello, world' printNl
> st> > > But as one sees from that copy there happens absolutely nothing! That is > also true for "123456 printString", "6 + 7" and other trial inputs. If > this is not a line interpreter I argue that it is only possible to start > files with a "shebang" or “sharp-bang”? > > Where is may error? The tutorial only works for GNU Smalltalk 3.0.x; the usability of the command-line interpreter improved a lot in 3.0 in different ways: 1) each statement is evaluated separately and variables persist until you type a bang (exclamation mark). In 2.x each bang-separated chunk would be a single evaluation unit. If you want more statements to act as single evaluation units in 3.x, wrap them with "Eval [ ... ]" 2) periods are implied at the end of a line if the grammar allows that 3) temporary declarations are optional. 4) the output is actually printed using #printOn: and not by some crappy C code. :-) Examples: #(1 2 3)! 2.x => Array new: 3 3.x => (1 2 3) a := 10 factorial b := a negated 2.x => error (variables not declared, missing period before "b", etc.) 3.x => 3628800 -3628800 I suggest that you download 3.0.1 and install it, or that you wait 10 days since on March 8th you could get the first release with support for Seaside. :-P Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
CONTENTS DELETED
The author has deleted this message.
|
In reply to this post by Paolo Bonzini-2
Esteban A. Maringolo wrote:
> On Tue, Feb 26, 2008 at 10:26 AM, Paolo Bonzini <[hidden email]> wrote: > >> I suggest that you download 3.0.1 and install it, or that you wait 10 >> days since on March 8th you could get the first release with support for >> Seaside. :-P > > Will it support it, or will it have it ported? Included. "gst-load --start Seaside" :-) Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Free forum by Nabble | Edit this page |