[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Using Smalltalk as a scripting language

From: Roland Plüss
Subject: Re: [Help-smalltalk] Using Smalltalk as a scripting language
Date: Tue, 27 Oct 2009 21:30:16 +0100
User-agent: Thunderbird (X11/20090926)

On 10/26/2009 08:10 PM, Roland Plüss wrote:
>> Why the gst_set_executable_path does not exist in gstpub.h
>> I don't know.
> Just an old version of GST.
It's 3.0.5 , that should not be too old shouldn't it?
>> Now in the manual (
>> ) it is written to omit |gst_process_file. Now what I want is two fold.
>> First I want to expose engine classes ( c++ classes ) to smalltalk. As
>> far as I get from the docs this should be possible although I'm not
>> fully getting it yet.
> This is the same as creating bindings for a library such as SQLite or
> GTK+ or NCurses.  There are several examples of varying complexity in
> the GNU Smalltalk distribution.
I've only worked a bit with Python yet. I'm using my own scripting
language as the main language and this one has C++ class bindings.
>> from that time on I operate on the game object sending all kinds of
>> messages. What goes for calling the initGame method I think I figured
>> out from the docs how this is supposed to be done but what goes for
>> loading the script files and parsing them I'm still at a loss.
> _gst_process_file works.  If the file is just a bunch of class and
> method definition, it won't block.
> If the main program is written in Smalltalk, you actually want to make
> it blocking though.
What exactly you understand as a main program? What I want is to load
only a bunch of classes with the script files. The main program is the
game loop run inside the game engine (c++) which then occasionally sends
messages to the game object ( which in turn is an instance of some game
base class provided to the developer ). So if I get you correctly then I
can simply call _gst_process_file for any single script file without
getting a block. Is there a way to prevent this function call from ever
blocking? Like for example the developer messes up and produces code
which would block, can I prevent this from happening so he doesn't kill
>> Side question: Is there somewhere an API documentation? I'm not so fond
>> of messing with function calls if I don't know what I can feed them as
>> input ( docs seem rather scarce to me ).
> You can feed everything you want, you may get a #doesNotUnderstand: if
> you screw up.
I guess I posed the wrong question. I talk about the c functions in the
gstpub.h file like for example _gst_process_file and company. I didn't
find a man page or anything in the docs which outlines how to use these
c functions or which kind of parameter values they know/accept.

Yours sincerely
Plüss Roland

Leader and Head Programmer
- Game: Epsylon ( , )
- Game Engine: Drag(en)gine ( , )
- Normal Map Generator: DENormGen ( )

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]