|
03:45
human-blip left
08:20
human-blip joined
10:29
habere-et-disper joined
|
|||
| habere-et-disper | Is this less than awesome ? | 10:31 | |
| m: sub foo { print 'f' }; foo xx 12; | |||
| camelia | ===SORRY!=== Error while compiling <tmp> Undeclared routine: xx used at line 1 |
||
| lizmat | m: sub foo { print 'f' }; foo() xx 12; | 10:35 | |
| camelia | ffffffffffff | ||
| lizmat | m: sub foo { print 'f' }; foo ~ 12; | 10:36 | |
| camelia | ===SORRY!=== Error while compiling <tmp> Calling foo(Str) will never work with declared signature () at <tmp>:1 ------> sub foo { print 'f' }; <HERE>foo ~ 12; |
||
| lizmat | foo without args, is seen as a call alright, but what follows it are seen as arguments | 10:37 | |
| m: say "foo" | |||
| camelia | foo | ||
| lizmat | so: xx 12 in the example is seen as arguments, which in turn is interpreted as xx(12) | 10:38 | |
| and then complains about the sub xx not existing | |||
| m: sub foo { print 'f' }; sub xx($a) { print $a }; foo xx 12; | |||
| camelia | ===SORRY!=== Error while compiling <tmp> Calling foo(Mu) will never work with declared signature () at <tmp>:1 ------> { print 'f' }; sub xx($a) { print $a }; <HERE>foo xx 12; |
||
| lizmat | m: sub foo($b) { print $b }; sub xx($a) { print $a }; foo xx 12; | 10:39 | |
| camelia | 12True | ||
| lizmat | perhaps the error could be more clear, if the name of the sub matches an infix op | 10:40 | |
| habere-et-disper | Thank you for the explanation =b. | 10:43 | |
| "Undeclared routine xx" got me confused thinking that Camelia had developed xx operator amnesia ! | |||
|
12:47
habere-et-disper left
|
|||