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 in structs #51

Open
glycerine opened this issue Dec 15, 2018 · 0 comments
Open

function pointers in structs #51

glycerine opened this issue Dec 15, 2018 · 0 comments

Comments

@glycerine
Copy link
Contributor

gi> type S struct {
  f func(string, ...interface{}) }
error! __errHandlerForEval sees err =   [string "--..."]:2326: attempt to call field 'substr' (a nil value)
[string "--..."]:2326: attempt to call field 'substr' (a nil value)
stack traceback:
    [string "--..."]:3262: in function 'substr'
    [string "--..."]:2326: in function '__funcType'
    [string "..."]:6: in function 'chunk'
    [string "--..."]:3290: in function <[string "--..."]:3290>
    [C]: in function 'xpcall'
    [string "--..."]:3290: in function '__gijitMainEval'
    [string "--..."]:3322: in function <[string "--..."]:3322>

elapsed: '810.463µs'
gi>
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