As mentioned it is syntactically legal, therefore the syntax chek reports OK.
It fails at runtime though, which is to be expected.
A compiler time error always prints this as the first line:
===SORRY!===
As mentioned it is syntactically legal, therefore the syntax chek reports OK.
It fails at runtime though, which is to be expected.
A compiler time error always prints this as the first line:
===SORRY!===
# New Ticket Created by James E Keenan
# Please include the string: [perl #127482]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=127482 >
The following program passes a compilation check but fails to run.
#
$ cat
On Sat, Feb 6, 2016 at 8:24 PM, James E Keenan wrote:
> $ perl6 attempted_printf.pl6
> Type check failed in binding $format; expected Cool but got Pair
> in block at attempted_printf.pl6 line 5
>
The syntax is fine. The semantics aren't, and even simpler cases
On Sat, Feb 6, 2016 at 8:24 PM, James E Keenan wrote:
> $ perl6 attempted_printf.pl6
> Type check failed in binding $format; expected Cool but got Pair
> in block at attempted_printf.pl6 line 5
>
The syntax is fine. The semantics aren't, and even simpler cases