Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc Issues/Possible Features #8

Open
ghost opened this issue Oct 13, 2010 · 2 comments
Open

Misc Issues/Possible Features #8

ghost opened this issue Oct 13, 2010 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2010

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:

  • The way method calls are parsed is a little too complex and is prone to errors (ex. a = 5, b (a) :.)
  • Sometimes potion treats numbers as int when they should be treated as long.

Features:

  • Dynamic loader to load objective-c libraries and use the classes as potion classes.
  • Optional arguments
  • Errors
  • potion_get_caller() function to get a method's caller.
@rurban
Copy link
Member

rurban commented Jun 5, 2013

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.

@rurban
Copy link
Member

rurban commented Oct 15, 2013

Optional arguments are now in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant