Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13194

Re: Calling by reference - Cavo28SP4

From Jamal <nospam@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Calling by reference - Cavo28SP4
Date 2020-12-22 16:24 -0500
Organization A noiseless patient Spider
Message-ID <a06132ee-1804-37f8-3a77-3ddc92029819@example.com> (permalink)
References <b68ebaac-b05d-4875-bce7-db953e846985n@googlegroups.com>

Show all headers | View raw


When you don't pass the a variable by reference correctly, the compiler 
will give you a warning:

Automatic Reference Generation: 51200.

Just make sure Warnings is at least set to Low and Warnings as Errors is 
checked in the compiler options of the particular option.
This will report all the issues at compile time and you will need to 
correct.

Jamal

On 12/18/2020 3:07 AM, 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
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Calling by reference - Cavo28SP4 "georg...@gmail.com" <georgiev.hr@gmail.com> - 2020-12-18 00:07 -0800
  Re: Calling by reference - Cavo28SP4 "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-12-21 16:36 +0100
    Re: Calling by reference - Cavo28SP4 "georg...@gmail.com" <georgiev.hr@gmail.com> - 2020-12-22 04:04 -0800
  Re: Calling by reference - Cavo28SP4 Jamal <nospam@example.com> - 2020-12-22 16:24 -0500
    Re: Calling by reference - Cavo28SP4 Jamal <nospam@example.com> - 2020-12-22 23:38 -0500
      Re: Calling by reference - Cavo28SP4 "georg...@gmail.com" <georgiev.hr@gmail.com> - 2020-12-23 03:47 -0800
        Re: Calling by reference - Cavo28SP4 Robert van der Hulst <rjvanderhulst@gmail.com> - 2020-12-23 05:00 -0800
          Re: Calling by reference - Cavo28SP4 "georg...@gmail.com" <georgiev.hr@gmail.com> - 2020-12-23 06:05 -0800
        Re: Calling by reference - Cavo28SP4 Jamal <nospam@example.com> - 2020-12-24 15:23 -0500
          Re: Calling by reference - Cavo28SP4 "georg...@gmail.com" <georgiev.hr@gmail.com> - 2021-01-04 00:38 -0800

csiph-web