I use Python4Delphi in D7. I want to pass object address as "handle" to Py part. E.g.
h:= Integer(Pointer(Memo1));
. I also want to have special handle values, which mean some specials objects, e.g. -1
means "current memo", -2
means "next memo".
How can I choose such few (I need 5) constants, which won't conflict with object adresses? E.g.
-1
- can it be address of some TMemo (of other TObject)?-2
- can it be address of some TMemo?- what else constants can I take which cannot be TMemo addresses?