<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 08/12/2018 07:42 AM, Benito van der
Zander wrote:<br>
</div>
<blockquote type="cite"
cite="mid:7056c380-0e3e-0104-888d-8e3c55fc1e1d@benibela.de">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div id="smartTemplate4-template"><br>
<br>
But this does not work, because fpc thinks jclass and jobject
are the same type, so there is only one type helper for both of
the types allowed.<br>
<br>
Because it is declared as<br>
<br>
type<br>
jobject=pointer;<br>
jclass=jobject;<br>
<br>
<br>
What can we do about this?<br>
<br>
</div>
</blockquote>
I haven't used type helpers but why not change to defines like<br>
<br>
type<br>
jObjectRec = record end;<br>
jObject= ^jObjectRec;<br>
jClassRec = record end;<br>
jClass = ^jClassRec;<br>
<br>
or possibly simpler you could try<br>
jclass = type(jobject); // I believe this forces a new type and is
not just an alias<br>
<br>
Regards,<br>
<br>
Andrew<br>
<br>
</body>
</html>