Re: Request for assistance: (assertion-violation) unbound variable

2017-06-10 Thread Alex Vong
Peter Silcock writes: > As a newcomer to Guile/Scheme, I am working my way through some > exercises which require the use of an (assertion-violation) procedure > to trap an error condition, specifically: > > (if (empty? queue) > (assertion-violation 'getq "Queue is empty"))) > > When I run th

Re: type friction C <-> scheme

2017-06-10 Thread Mark H Weaver
Catonano writes: > 2017-06-10 0:33 GMT+02:00 Matt Wette : > > I think Mike caught your real error: you were passing (list ‘* ‘int ‘*) and >> it wants (list ‘* int ‘*). `int’ is a variable defined by guile. >> > > And isn't `*' a variable defined in guile too ? > > >> >> scheme@(guile-user)> (use

Re: #define SOMETHING some_value

2017-06-10 Thread Matt Wette
> On Jun 10, 2017, at 1:31 AM, Catonano wrote: > > The Freexl documentation states that I should call freexl_get_info like this > > freexl_get_info(&handler, FREEXL_BIFF_SHEET_COUNT, &outcome); > > Now, FREEXL_BIFF_SHEET_COUNT is defined in the header file like this > > /** Information query

Re: Stack traces

2017-06-10 Thread Catonano
2017-05-18 15:38 GMT+02:00 Christopher Allan Webber : > Amirouche writes: > > > Le 27/02/2017 à 21:23, Andy Wingo a écrit : > >> On Sat 18 Feb 2017 20:59, Amirouche writes: > >> > >>> How do you access variables in the REPL? > >> ,locals > >> > >> Andy > > It doesn't display something that I can

Re: #define SOMETHING some_value

2017-06-10 Thread Amirouche Boubekki
What I do is that I hardcode the define in scheme using simple define form for instance, the following: #define SOMETHING some_value Becomes: (define SOMETHING some_value) I do that even for enums. But guile-squee has another point of view on this. On Sat, Jun 10, 2017 at 10:31 AM Catonano

#define SOMETHING some_value

2017-06-10 Thread Catonano
The Freexl documentation states that I should call freexl_get_info like this freexl_get_info(&handler, FREEXL_BIFF_SHEET_COUNT, &outcome); Now, FREEXL_BIFF_SHEET_COUNT is defined in the header file like this /** Information query for BIFF sheet count */ #define FREEXL_BIFF_SHEET_COUNT320