Eric Hodel schreef:
> On Jan 21, 2007, at 16:10, Wim Vander Schelden wrote:
>> Wim Vander Schelden schreef:
>>> I just finished a tutorial about writing simple ruby extensions.
>>> I was hoping you guys could give me some feedback on what you think 
>>> about it.
>>>
>>> If you find any mistakes (code, spelling, grammar and explanation), 
>>> I would also appreciate it if you told me about them?
>>
>> http://nanoblog.ath.cx/index.rb?module=readmore&id=8
>
>> exit unless have_header("stdio.h")
>
> I'd change this to:
>
> abort 'need stdio.h' unless have_header("stdio.h")
>
> but other than that, thank you, thank you, thank you for using an 
> example that doesn't proceed to write a Makefile when the right 
> thingies aren't found.  I think about half the C extensions I've 
> installed puke somewhere after attempting to build rather than puking 
> cleanly in extconf.rb.
>
> --Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
>
> I LIT YOUR GEM ON FIRE!
>
>
>
Yes, I first did that as well, I thought have_header and the like 
aborted all by themselves. I changed it to abort 'need stdio.h' now, 
looks cleaner when it fails.

Kind regards,

Wim