From: matz@... (Yukihiro Matsumoto) Date: 2003-10-20T18:33:18+09:00 Subject: Re: 'unexpected return' caused by extension Hi, In message "'unexpected return' caused by extension" on 03/10/11, "Nathaniel Talbott" writes: |I'm writing my first (useful) Ruby extension, and I'm having issues. I'm |sure it's just a combination of my lack of C knowledge and lack of Ruby |knowledge, but I'd be extremely grateful for any pointers you might have. | |Basically, I'm trying to write a better, faster profiler. I've attached all |of the interesting bits. When I run this on the tests from the most recent |Ruby (actually, just trying to get help!), I get the following error: | | ntalbott@solomon:~/cvs/ruby/test$ ruby -v -I ~/nprof -rnprofit runner.rb |--help | /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:10: unexpected return | ruby 1.8.0 (2003-10-10) [i686-linux] | |Running it without the extension works as expected. I'm sure I'm doing |something stupid... I promise to slap myself on the forehead when someone |shows me what it is. It's a bug. I fixed it in the latest CVS. matz.