#1146: same code works on windows, not on mac
--------------------+-------------------------------------------------------
 Reporter:  kjs     |       Owner:  kjs  
     Type:  bug     |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  pirc    |     Version:  1.6.0
 Severity:  medium  |    Keywords:       
     Lang:          |       Patch:       
 Platform:          |  
--------------------+-------------------------------------------------------
Description changed by plobsing:

Old description:

> This program:
>
> {{{
> .sub main
>   a()
>   b()
> .end
> .sub a
>   say "a"
> .end
> .sub b
>   say "b"
> .end
> }}}
>

> Works fine on windows, whereas on MacOS 10.6, I see:
>
> $ ./pirc -b -x inv.pir
> a
> maximum recursion depth exceeded
> current instr.: 'b' pc 26 (inv.pir:11)
> called from Sub 'main' pc -1 ((unknown file):-1)
>

> Not tested in Linux.
> Note: PIRC is NOT built as part of the Parrot build process. In order to
> get the PIRC executable:
> {{{
> cd compilers/pirc
> make
> }}}

New description:

 This program:

 {{{
 .sub main
   a()
   b()
 .end
 .sub a
   say "a"
 .end
 .sub b
   say "b"
 .end
 }}}


 Works fine on windows, whereas on MacOS 10.6, I see:

 $ ./pirc -b -x inv.pir
 a
 maximum recursion depth exceeded
 current instr.: 'b' pc 26 (inv.pir:11)
 called from Sub 'main' pc -1 ((unknown file):-1)


 Not tested in Linux.
 Note: PIRC is NOT built as part of the Parrot build process. In order to
 get the PIRC executable:
 {{{
 cd compilers/pirc
 make
 }}}

--

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1146#comment:4>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to