You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gi> import "time"
elapsed: '277.3µs'
gi> var t time.Time
error! __errHandlerForEval sees err = [string "..."]:8: attempt to call field 'ptrToNewlyConstructed' (a nil value)
[string "..."]:8: attempt to call field 'ptrToNewlyConstructed' (a nil value)
stack traceback:
[string "--..."]:3262: in function 'ptrToNewlyConstructed'
[string "..."]:8: 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: '278.509µs'
gi>
The text was updated successfully, but these errors were encountered:
related, can't embed Go structs like time.Time inside Lua structs:
gi> type S struct { t time.Time }
elapsed: '306.963µs'
gi> var s S
error! __errHandlerForEval sees err = [string "--..."]:2788: attempt to concatenate field 'id' (a nil value)
[string "--..."]:2788: attempt to concatenate field 'id' (a nil value)
stack traceback:
[string "--..."]:3262: in function '__concat'
[string "--..."]:2788: in function 'fun'
[string "--..."]:555: in function '__mapAndJoinStrings'
[string "--..."]:2793: in function '__structType'
[string "..."]:2: 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: '185.362µs'
gi>
The text was updated successfully, but these errors were encountered: