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

Function pointers aren't supported #87

Open
GoogleCodeExporter opened this issue Oct 14, 2015 · 3 comments
Open

Function pointers aren't supported #87

GoogleCodeExporter opened this issue Oct 14, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Support them

Original issue reported on code.google.com by [email protected] on 3 Jul 2010 at 5:42

@GoogleCodeExporter
Copy link
Author

Scheduled for release 2.0

Original comment by [email protected] on 27 Jul 2010 at 10:55

  • Added labels: Milestone-Release2.0

@GoogleCodeExporter
Copy link
Author

Scheduled for release 2.2

Original comment by [email protected] on 23 Feb 2011 at 5:24

  • Added labels: Milestone-Release2.2
  • Removed labels: Milestone-Release2.0

@GoogleCodeExporter
Copy link
Author

Hi,

I am looking at using your PicoC project in a potential research project / game 
instead of Lua and would really like to see this feature implemented if you 
still have time :)

However, for a temporary solution to function pointers, it is possible to take 
advantage of the dynamic nature of PicoC to call the function by name rather 
than pointer. I have added to pastebin an example patch and test driver that 
may benefit others looking for a quick solution (unless this has already been 
implemented in which case please ignore my noise ;).

PicoC Patch:
http:https://pastebin.com/fesx6RuQ

Test Example:
http:https://pastebin.com/TASDGfuG

However, I think the main problem with my solution is there will be quite a 
speed hit when looking for the function by string.

Thank you very much for your work so far. I really like this project and the 
code is extremely readable.

Original comment by [email protected] on 20 May 2014 at 7:02

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

No branches or pull requests

1 participant