#2147: ops2c and a variable with "return" in its name
----------------------+-----------------------------------------------------
 Reporter:  jonathan  |       Owner:  dukeleto
     Type:  bug       |      Status:  new     
 Priority:  minor     |   Milestone:          
Component:  tools     |     Version:  3.5.0   
 Severity:  medium    |    Keywords:          
     Lang:            |       Patch:          
 Platform:  all       |  
----------------------+-----------------------------------------------------
 {{{
 15:00 <@jnthn__> So it turns out that if you have a variable called
 returns or
                  return_type in an ops file, ops2c goes and wraps it up in
 an
                  extra level of parens, causing an innevitable C syntax
 error.
                  WTF.
 15:01 <@jnthn__> foo->return_type ends up coming out as foo->(return_type)
 15:01 <@jnthn__> Rename that to rtype and it works
 15:01 <@jnthn__> :/
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/2147>
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