Beispiel #1
0
func AsType(o *Base) (v *Type, ok bool) {
	if ok = C.typeCheck(o.c()) != 0; ok {
		v = newType(o.c())
	}
	return
}
Beispiel #2
0
func typeCheck(obj Object) bool {
	if obj == nil {
		return false
	}
	return C.typeCheck(c(obj)) != 0
}