Property definitions

core $ Pointer :: defaultinit
# Pointer classes are used to manipulate extern C structures.
extern class Pointer
	# C `NULL` pointer
	new nul `{ return NULL; `}

	# Is the address behind this Object at NULL?
	fun address_is_null: Bool `{ return self == NULL; `}

	# Free the memory pointed by this pointer
	fun free `{ free(self); `}

	# Use the address value
	redef fun hash `{ return (long)(intptr_t)self; `}

	# Is equal to any instance pointing to the same address
	redef fun ==(o) do return o isa Pointer and native_equals(o)
	private fun native_equals(o: Pointer): Bool `{ return self == o; `}
end
lib/core/kernel.nit:1069,1--1086,3