Re: [Ecls-list] Accessing cons values in C

2015-07-29 Thread Pascal J. Bourguignon
Chris Osborne chris.osbo...@gmx.com writes: Am I missing something obvious here or do I just have to use the cl functions in C to access elements of what is essentially lisp’s simplest data type? You wouldn't want random C code to fuck with your data structures, would you? Don't write C

Re: [Ecls-list] Accessing cons values in C

2015-07-29 Thread Chris Osborne
Well, I can understand the sentiment, but whilst I said C, it’s actually modern C++ which is approaching lisp with every new standard IMO. I’m using ECL in an *extremely* overkill capacity to to act as “smart” config files and to run a simple REPL for the user to play around with configuring

Re: [Ecls-list] Accessing cons values in C

2015-07-29 Thread Nils Bruin
On Thu, 30 Jul 2015, Chris Osborne wrote: Anyhow, here’s the solution: I just found that enable-smallcons is on by default (for some major performance gains when I looked into it). In this scenario, there’s a set of macros ECL_CONS_PTR, ECL_CONS_CAR etc. defined in object.h to access the cons