Re: Guile initialization and string evaluation with C++

2014-04-02 Thread Chris Vine
On Tue, 1 Apr 2014 15:34:50 +0200 Ralf Mattes wrote: [snip] > I'd do this slightly different: instead of using a non-member > function (which needs to be declared a friend) I'd rather give my > object a static function - static functions _can_ be used as C > callbacks (since they don't expect a hi

Re: Guile initialization and string evaluation with C++

2014-04-01 Thread Eduardo Acuña
Thank you very much for your feedback! :D I updated the code ( https://github.com/eduardoacye/GuileCppApplication ). If you have any other suggestions for making a better C++ interface with GNU Guile, i can do my best to put them in the code. Eduardo. On Tue, Apr 1, 2014 at 6:34 AM, Ralf Matte

Re: Guile initialization and string evaluation with C++

2014-04-01 Thread Ralf Mattes
On Tue, Apr 01, 2014 at 06:35:59PM +0800, Nala Ginrut wrote: > On Thu, 2014-03-27 at 21:03 -0700, Eduardo Acuña wrote: Slightly reordered > > Sorry I can't help you on this. IMO, you don't understand why you can't > cast it as a function pointer. Maybe it's different from C? Yes, somehow

Re: Guile initialization and string evaluation with C++

2014-04-01 Thread Nala Ginrut
On Thu, 2014-03-27 at 21:03 -0700, Eduardo Acuña wrote: > > > My program calls scm_boot_guile from the member function init() of the > GuileApplication class. There is no problem passing the argc and argv > to scm_boot_guile, however i want to pass the member function > guileMain as the third ar

Re: Guile initialization and string evaluation with C++

2014-03-27 Thread Eduardo Acuña
I uploaded the code to a github repository and added a Makefile using pkg-config (you are right about the .zip, it looks weird): https://github.com/eduardoacye/GuileCppApplication >Can you explain why you want to `send' scm_boot_guile'? I can't figure >it out from your description and your code.

Re: Guile initialization and string evaluation with C++

2014-03-27 Thread Nala Ginrut
On Mon, 2014-03-24 at 12:08 -0700, Eduardo Acuña wrote: > Hello everybody. > > lately i have been programming in scheme, but i'm usually obligated to use > C++ for school. > > So i try to use guile inside C++ programs. > > I wrote two little classes for simplifying the initialization of guile an