Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. in lib/boleite/src/boleite/backend/glfw_surface.cr:12: use `null?` instead of `nil?` on pointer types.
  2.  
  3. The semantic of `nil?` changed in the last version of the language
  4. to mean `is_a?(Nil)`. `Pointer#nil?` meant "is it a null pointer?"
  5. so using `nil?` is probably not what you mean here. If it is,
  6. you can use `is_a?(Nil)` instead and in the next version of
  7. the language revert it to `nil?`.
  8.  
  9. unless @surface.nil?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement