Re: Scripting within GNUstep

Patrick Cardona <[email protected]>
Newsgroups gmane.comp.lib.gnustep.general
Message-ID <4759644ad42e13fe09f2bf38e483cb83@pi400>
Hi Yavor,

Thank you for the instructive answer.
I simply found the whole 'documentation' and the 'reference' folder in 
the source folder of 'libs-steptalk'.
Also the 'Shell' folder under 'Examples': I built and installed 
stshell I was missing.
So I have now all is needed to learn and practice about scripting 
within GNUstep.

On 2025-11-24 19:24:04 +0100 Yavor Doganov <[email protected]> wrote:

> Patrick Cardona wrote:
>> The StepTalk framework is installed, but seemingly with an incomplete
>> or limited Smalltalk compatibility.
> 
> I don't understand this statement.  StepTalk is modularized; the
> Foundation module should always be installed.  The method names must
> match those in GNUstep Base, not some methods that exist(ed) in
> Smalltalk.  StepTalk is a fresh implementation from ground zero, it
> does not rely on anything from Smalltalk.
> 
>> When I try some other commands, e.g.:
>> 	'Hello' indexOf: $e
> 
>> I receive such an error message:
> 
>> stexec: Uncaught exception STInternalInconsistencyException, reason:
>> No method signature for selector 'indexOf:' for receiver of type
>> GSMutableString
> 
> That's correct and a proper error message; there is no such method.
> What are you trying to do?  You can get a list of the methods from the
> Base API reference documentation, which is also online at gnustep.org.
> 
> $ stshell
> Welcome to the StepTalk shell.
> StepTalk > 'Hello' insertString: 'Foo' atIndex: 2
> (0) HeFoollo
> StepTalk > 'Hello' length
> (1) 5
> StepTalk > 'Hello' cString
> (2) Hello
> StepTalk > 'Hello' dataUsingEncoding: NSASCIIStringEncoding
> (3) <48656c6c 6f>
> StepTalk >  'Hello' hash
> (4) 85604660
> StepTalk > 'Hello' isEqualToString: 'Hi'
> (5) 0
> 
>> - Do we need to install a complete Smalltalk runtime to use StepTalk
>> within GNUstep?
> 
> You don't need anything from Smalltalk (neither the original Smalltalk
> nor the GNU Smalltalk implementation) to use StepTalk, it has nothing
> to do with it apart from inspiration (which is more or less true for
> the Objective-C language as well).
> 
>> - Is the StepTalk Framework limited with GNU runtime?
> 
> You mean the GNU Objective-C runtime?  Haven't tried, but I'd be very
> surprised if it is.  That would be a bug worth fixing.
> 
> 

Cheers,
Patrick

-- 
Patrick Cardona - Pi400 - GNU/Linux aarch64 (Debian 13.2)
Xorg (1:7.7+24) - libcairo2 (1.18.4-1+rpt1 arm64)
Window Maker (0.96.0-4) - GWorkspace (1.1.0 - 02 2025) - Theme: 
AGNOSTEP - MUA: GNUMail (1.4.0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.