Three word location: Difference between revisions

m
→‎{{header|Phix}}: comment -> use new requires() builtin, precedence has been fixed
m (→‎{{header|Perl}}: errant 'join' led to un-needed complexity)
m (→‎{{header|Phix}}: comment -> use new requires() builtin, precedence has been fixed)
Line 548:
 
=={{header|Phix}}==
{{trans|Go}}
{{trans|Go}} Requires 0.8.2+ - I used this task as an excuse to add << and >> bit shift operators,
alongside<lang &&Phix>requires("0.8.2") and-- (new || as&& infix<< versionsand of>> and/or_bits().operators, Prepre-0.8.2 code left in as comments.<br>)
 
Note the precedence of these ops is not yet finalised, they need extra parenthesis for now.
<lang Phix>function toWord(integer w)
return sprintf("W%05d", w)
end function
7,794

edits