Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-01

Funny bug with function result

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lukas Gebauer

FYI. I know, assigning Result to Result on end of function is really not usefull (it is my error), but why FPC is confused from this action and returned result is bad?

On Delphi is all OK if this line exists (and is removed by code optimalization).

------- Forwarded message follows -------
Komu:
Od: "Jon"
Datum odeslani: Fri, 07 Jan 2005 12:59:40 -0000
Vec: [synalist] Bug in SynaUtil

Using Synapse with Free Pascal Compiler produces incorrect results.

I tracked the bug to SynaUtil:

Version 004.006.007 - latest SynaSnap
function FetchEx
line 1442:
Result := Result;

If I remove this line, all works well - and with Delphi too.

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/synalist/

<*> To unsubscribe from this group, send an email to:

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

------- End of forwarded message -------

Lukas Gebauer. E-mail: WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library

Reply by email

Peter Vreman
to Lukas Gebauer
Show quoted text 6 lines
FYI. I know, assigning Result to Result on end of function is really not usefull (it is my error), but why FPC is confused from this action and returned result is bad? On Delphi is all OK if this line exists (and is removed by code optimalization)

Please submit a bug with example code to reproduce on the bugs repository of fpc.

Reply by email