Re: [Plib-users] psl questions
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-06-04 14:28:16
|
Gerald Franz wrote: > Dear plib users and developers, > > I have some questions concerning psl. After some tests I generally like > its minimalistic design and ease of use for people who already know a > little bit of C, but still I am reluctant to implement it into an > ongoing project due to some unclarities: > > * are there any realworld application already using it? Right now, I'm using it in a game I'm writing - but that hasn't been pushed out to the masses. I havn't *heard* from anyone using it aggressively. My son wrote a couple of simple games using the 'Simon' demo - one of them ('Astropong') is distributed with the demo's bundle. But you are correct in supposing that it hasn't been agressively tested. > * are there any ways to bundle a group of extension functions, let's say > a math-package, and to import it more library like? I deliberately left that stuff up to the application. There may be very good reasons why an application developer might not WANT the script programmer to be able to pull in a particular library...for example, that might allow the script to do things that would violate network security or something. > * the main() function is normally defined in C as int main( int argc, > char **argv), is something equivalent possible in PSL, and if so, how to > access return value and arguments? No - there isn't - and again, I leave that stuff up to the application. If you want to provide functions for reading argc/argv type data then you can. I wrote functions called 'getArgc' and 'getArgv' for one of my test applications. > * according to the programming guide, "#define with parameters" is not > supported. However, it seems to work and is used in astropong? Ack! Out of date documentation! My apologies. > The 1.8.1 examples and documentation package seems to lack the > documentation? Really? ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |