|
|
|
|
|
by gabereiser
993 days ago
|
|
‘type Color string’ is just a type alias for string. Likewise GLint is just a type alias for int. There are only value types (str, int, float, etc), everything else is a construct. The only true types are those value types (and pointers to them). If you call a type a Color and I call a type a Color, you are using my lib to build a program (not me using yours), you must adhere to my contract of what a Color type is to my API. Period. You can not call a function with an unknown type and expect it to behave properly. If it panics, it’s your fault. |
|