OK, when I compile this code to PASM, then execute it,
it works just fine (prints "i like peanuts", "hello",
then "goodbye"). But if I call parrot directly on the
IMCC code, it gives me a segmentation fault after
printing "i like peanuts".

  .sub looper
    print "i like peanuts\n"
    shooper()
    print "goodbye\n"
    end
  .end

  .sub shooper non_prototyped
    print "hello\n"
  .end

I've tried a number of variations on this code --
giving shooper a parameter, explicitly creating a sub
object, using .pcc_call syntax, etc. Every time it has
about the same effect: compiling to PASM first makes
it work, but running the .imc of .pbc makes it do
something stupid like segfault, print "i like peanuts"
forever, or just hang up.

It seems unlikely to me that this is actually a bug,
as  nobody else has reported it yet... does anyone
know what's up?



        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

Reply via email to