<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Please disregard last post, this demo actually works when I
uncomment:<br>
<br>
testlongWordHelper2 = record helper (testlongWordHelper1) for
testlongWord<br>
<br>
I will need to have another look if this example is too simple or I
did something wrong in my 'real' code.<br>
<br>
Michael<br>
<br>
<div class="moz-cite-prefix">Am 12.07.15 um 11:55 schrieb Michael
Ring:<br>
</div>
<blockquote cite="mid:55A239A5.8060702@michael-ring.org" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Here's a simplified example, it fails with a compiler error when
compiling it with trunk:<br>
<br>
test.pas(37,5) Error: Illegal qualifier<br>
<br>
<br>
program test;<br>
{$modeswitch objpas}<br>
{$modeswitch advancedrecords}<br>
{$modeswitch typehelpers}<br>
type<br>
testlongWord = longWord;<br>
var<br>
t : testlongWord;<br>
type<br>
testlongWordHelper1 = record helper for testlongWord<br>
procedure setValue1(a : longWord);<br>
function getValue1 : longWord;<br>
property Value1 : longWord read getValue1 write setValue1;<br>
end;<br>
<br>
type<br>
//testlongWordHelper2 = record helper (testlongWordHelper1) for
testlongWord<br>
testlongWordHelper2 = record helper for testlongWord<br>
procedure setValue2(a : longWord);<br>
function getValue2 : longWord;<br>
property Value2 : longWord read getValue2 write setValue2;<br>
end;<br>
<br>
procedure testlongWordHelper1.setValue1(a : longWord);<br>
begin<br>
end;<br>
function testlongWordHelper1.getValue1 : longWord;<br>
begin<br>
end;<br>
<br>
procedure testlongWordHelper2.setValue2(a : longWord);<br>
begin<br>
end;<br>
function testlongWordHelper2.getValue2 : longWord;<br>
begin<br>
end;<br>
<br>
begin<br>
t.Value1 := 10;<br>
t.Value2 := 10;<br>
end.<br>
<br>
<div class="moz-cite-prefix">Am 09.07.15 um 17:17 schrieb Sven
Barth:<br>
</div>
<blockquote
cite="mid:CAFMUeB_saq=G_vfSqfvTv9b2hFj1CezfbTpTCrcghSxxcTVuPQ@mail.gmail.com"
type="cite">
<p>Am 09.07.2015 14:38 schrieb "Michael Ring" <<a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:mail@michael-ring.org"><a class="moz-txt-link-abbreviated" href="mailto:mail@michael-ring.org">mail@michael-ring.org</a></a>>:<br>
><br>
> I now exactly hit that issue, I have a set of 'basic'
typehelpers that I wanted to extend in a second unit, but
unfortunately this does not work, the newly defined
type-helpers do not allow me to access the <br>
> functions defined in the 'basic' typehelper, so this
approach is not possible....<br>
></p>
<p>Would you please show code? Because at least in mode ObjFPC
that should work and if not it's a bug.</p>
<p>><br>
> Are those future development plans already reality and I
did simply miss the correct modeswitch or is this still on the
ToDo List? <br>
><br>
> If it's todo, are there already any plans on when this
could get fixed?</p>
<p>It's still on my ToDo list (the most complicated part being
to define the order how methods are found). Currently I'm
working on other topics though...</p>
<p>Regards,<br>
Sven</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-devel maillist - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>