Re: [Guile-sdl-devel] Merging guile-SDL-s [Was - Announcing Projector - Guile bindings for SDL]
Status: Beta
Brought to you by:
joels
From: Alex S. <fo...@de...> - 2001-06-20 21:33:10
|
>>>>> "Vikram" == Vikram Subramanian <vi...@ww...> writes: Vikram> OOps, Got my mail filters wrong and this went into the SDL Vikram> folder and I didn't see the previous mail. I also thought Vikram> of init-ing as the module is loaded , but how do we handle Vikram> errors in initiliazation. Good point... we could let them use wasInit() to be sure everything went OK. If they're being careful they have to check the status of the init anyway. >> In these cases I was using simple lists. The above example >> would return (2 20 10), which is a little faster. I suppose >> the question is are we more concerned with speed or having the >> results make sense in other contexts? Vikram> I thought writing docs and explaining it to someone else Vikram> would be a much easier job with alists. Since these are basically convenience functions, and a normal tight event loop would use the accessors for the event smob, we don't need to be especially efficient here so the alists sound better. Vikram> Then I'll start the work??.Tomorrow (21st) I'll take your Vikram> sources put them in a layout similar to mine (change Vikram> filenames if needed) and then add my extra functions and Vikram> stuff and maybe have one source file using snarfing. Then Vikram> we better put it up in the CVS(or I'll tarball it) and Vikram> continue with conversion to a snarfable version by Vikram> dividing the work. OK, as I said I had already started working on this. The code is at http://eyeofdog.org/foof/code/guile-sdl/guile-sdl-merged.tar.bz2. I'm using your layout and file names, but most of my code, with almost all gh_ functions renamed, and SCM_INUMP replaced with scm_exact_p. I started converting SCM_INUM and gh_scm2long with scm_num2long, but was careless reading the prototype... where I have scm_num2long (s_num) I should have used scm_num2long (s_num, (char*) SCM_ARGN, "function-name") I won't have time to help tonight, but will have time tomorrow. -- Alex Shinn <fo...@de...> Lisper, Smalltalker, and all around poor speaker |