[Gambas-devel] Designing good APIs
Benoit Minisini
gambas at ...1...
Fri Jul 15 20:50:16 CEST 2005
On Friday 15 July 2005 01:17, Laurent Carlier wrote:
> Benoit Minisini a écrit :
> > I suggest you (especially the Gambas component developers) read this
> > article from Mathias Ettrich about the designing of APIs:
> >
> > http://doc.trolltech.com/qq/qq13-apis.html
> >
> > I agreed about all I read, even if I didn't follow all its
> > recommendations in Gambas :-)
>
> Thanks !
> Really usefull and interesting !
Here is something that may interest you and others:
I made a new API in gambas named GB.RealFileName(). It does the same thing as
GB.FileName() except that if the file is located inside the project
executable, then a temporary copy is made, and the path to this copy is
returned.
This way, the SDL component can load fonts and play musics that are located in
the project transparently. And I could make a functional executable of
Galaxia :-)
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the Devel
mailing list