Open ghost opened 13 years ago
Good ideas. Maybe we need extra tickets as we implement them.
Optional args without defaults are encoded as |
(default value: nil
).
Defaults for those are already implemented in my perl11/p2
branch and will be backported.
<name> = <type> := <value>
or just <name> := <value>
taking the type from the value.
get_caller
introspection was also requested from others.
The method parser is super simplistic and error prone, sure.
I'm trying to improve that in my perl11/expr
branch, but it's not easy.
long
as int
should be easily fixable, good catch.
Optional arguments are now in.
I have found a lot of issues and possible features that are probably too small to have their own page so I will put them here.
Bugs:
a = 5, b (a) :.
)int
when they should be treated aslong
.Features:
potion_get_caller()
function to get a method's caller.