Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Calling by reference - Cavo28SP4 Date: Mon, 21 Dec 2020 16:36:02 +0100 Lines: 41 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net /ni3gZLT76qL47Z65EF0WwI2gyLxXKbZsoJndq24hbNyKGiKo= Cancel-Lock: sha1:/HtAlcfinh/y/s+osUNJu27FVlY= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13190 Hi Georgi, I'm not sure about this, but I think real8 has a something different behavior. If the code on both sides is yours, why you don't use the float datatype? Wolfgang georg...@gmail.com wrote: > Hello everyone, > > What is the best way to find the following problems with calling by > reference in the software: > > function MyFunctioOne () as logic > local nVar: = 0 as int > > MyFunctioTwo (@nVar) > or > MyFunctioTwo (nVar) > > return (true) > > function MyFunctioTwo (nVar ref real8) as logic > .... > nVar: = 1234.56 > > return (true) > > Thanks in advance for the reply! > > Best regards. > Georgi Georgiev --