[Chicken-users] Objective-C interface (sort of...)

2005-11-24 Thread felix winkelmann
Hi! I've started trying to come up with an Objective-C interface, attached my current efforts. Still highly experimental and incomplete. Comments are welcome, patches and extensions even more. Defining ObjC classes inside Scheme (or Proxy objects to be more specific) should be possible, but I'm

Re: [Chicken-users] Handling unstandard reader macros.

2005-11-24 Thread Pupeno
On Thursday 24 November 2005 04:17, felix winkelmann wrote: Then you must been doing something wrong... (set-dispatch-read-syntax! #\ (lambda (p) (let loop () (let ((c (read-char p))) (cond ((eof-object? c) (error unexpected end of file)) ((char=? c #\)

Re: [Chicken-users] Handling unstandard reader macros.

2005-11-24 Thread felix winkelmann
On 11/24/05, Pupeno [EMAIL PROTECTED] wrote: Note: http://www.call-with-current-continuation.org/manual/Reader-extensions.html#index-set_002ddispatch_002dread_002dsyntax_0021-231 specifies only one argument for set-dispatch-read-syntax!, that confused me. Yes, the documentation is broken

Re: [Chicken-users] Returning a void * by reference

2005-11-24 Thread Zbigniew
OS X on PPC. Compilation flags are -O3 -fomit-frame-pointer -fno-strict-aliasing -mcpu=7450 -DC_ENABLE_PTABLES. I will try on my x86 box later. On 11/24/05, felix winkelmann [EMAIL PROTECTED] wrote: On 11/24/05, Zbigniew [EMAIL PROTECTED] wrote: Here's another interesting performance note,

Re: [Chicken-users] Handling unstandard reader macros.

2005-11-24 Thread Pupeno
On Thursday 24 November 2005 12:29, you wrote: That's odd, the chicken.info file has the correct signature of (set-read-syntax! CHAR PROC). But we are talking about set-dispatch-read-syntax! -- Pupeno [EMAIL PROTECTED] (http://pupeno.com) pgpahux1Q9eBC.pgp Description: PGP signature

Re: [Chicken-users] Objective-C interface (sort of...)

2005-11-24 Thread Thomas Chust
Am 24.11.2005, 13:44 Uhr, schrieb felix winkelmann [EMAIL PROTECTED]: [...] libffi should work fine on OS X, so I don't see a problem here. It should, but it never did for me... After all the failed attempts, I have developed a certain dislike for the libffi library ;) objc_msgSendv() might

Re: [Chicken-users] Objective-C interface (sort of...)

2005-11-24 Thread Raffael Cavallaro
On Nov 24, 2005, at 12:08 PM, Thomas Chust wrote:It should, but it never did for me... After all the failed attempts, I have developed a certain dislike for the libffi library ;) I can second this negative view of libffi. I have never gotten it to work on Mac OS X despite several attempts over the

Re: [Chicken-users] Objective-C interface (sort of...)

2005-11-24 Thread felix winkelmann
On 11/24/05, Thomas Chust [EMAIL PROTECTED] wrote: As far as I can see, the objc_msgSendv family of functions or the NSInvocation class respectively offer functionality that is equivalent to that of libffi. As NSInvocation is also available in GNUStep, I think it would be most portable to

Re: [Chicken-users] Handling unstandard reader macros.

2005-11-24 Thread felix winkelmann
The HTML manual at the website is simply out of date. I upate it only on major releases. cheers, felix On 11/24/05, Zbigniew [EMAIL PROTECTED] wrote: Both signatures are correct in the info file. On 11/24/05, Pupeno [EMAIL PROTECTED] wrote: On Thursday 24 November 2005 12:29, you wrote: