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.


Reply via email to