<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
my original suggestion and then</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
<br>
</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
<span style="color: rgb(0, 0, 0); font-family: -apple-system, HelveticaNeue; font-size: 14.6667px; text-align: start; display: inline !important">function proc_bool : boolean;</span></div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
<span style="color: rgb(0, 0, 0); font-family: -apple-system, HelveticaNeue; font-size: 14.6667px; text-align: start; display: inline !important"><br>
</span></div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
what exactly are you trying to accomplish?</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
<br>
</div>
<div id="ms-outlook-mobile-signature">--<br>
Alexander Grotewohl<br>
<a href="https://dcclost.com" target="_blank">https://dcclost.com</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of Rainer Stratmann <rainerstratmann@t-online.de><br>
<b>Sent:</b> Tuesday, May 5, 2020 4:20:11 PM<br>
<b>To:</b> FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org><br>
<b>Subject:</b> Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Am Dienstag, 5. Mai 2020, 22:14:09 CEST schrieb Alexander Grotewohl:<br>
> procvar:=@proc_bool; ?<br>
<br>
Error: Incompatible types<br>
<br>
> --<br>
> Alexander Grotewohl<br>
> <a href="https://dcclost.com">https://dcclost.com</a><br>
> <br>
> ________________________________<br>
> From: fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of<br>
> Rainer Stratmann <rainerstratmann@t-online.de> Sent: Tuesday, May 5, 2020,<br>
> 4:05 PM<br>
> To: FPC-Pascal users discussions<br>
> Subject: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4<br>
> <br>
> Compiled with FPC 3.0.4 there is an access violation when executing procvar;<br>
> Compiled with FPC 2.6.4 it works for a long time.<br>
> <br>
> Did I overlooked something?<br>
> <br>
> Mode: MObjFPC<br>
> <br>
> type<br>
> t_funcboolean = function : boolean;<br>
> var<br>
> procvar : t_funcboolean;<br>
> <br>
> function proc_bool : t_funcboolean;<br>
> begin<br>
> end;<br>
> <br>
> begin<br>
> procvar := proc_bool;<br>
> procvar; // -> access violation with FPC 3.0.4<br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>
> <a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</div>
</span></font></div>
</body>
</html>