FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index WhatsNew / Novedades Harbour 3.2 Borland 7 32bits 2018/01/27
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Sat Jan 27, 2018 11:10 AM
https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/harbour_bcc7_32bits_20180127.zip

Built using these Harbour defines:

go.bat
set path=c:\bcc7\bin
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
set HB_WITH_CURL=c:\curl\include
win-make.exe

viewtopic.php?p=201592#p201592
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Sat Jan 27, 2018 10:06 PM
I just found a bug:

Code (fw): Select all Collapse
FUNCTION MAIN()

    LOCAL i

    FOR i = 1 TO 10
        FOR i = i TO 5
            ? i
        NEXT
    NEXT

    INKEY( 0 )

    RETURN NIL


Code (fw): Select all Collapse
Harbour 3.2.0dev (r1801051438)
Copyright (c) 1999-2016, http://harbour-project.org/
BUG.prg(6) Warning W0030  Duplicate variable 'I' in nested FOR loop

No code generated.


EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Sun Jan 28, 2018 06:03 AM
Enrico,

I don't think that is a bug as it is reported as a warning

Anyhow the right place to report it is in the Harbour developers group at:
https://groups.google.com/forum/#!forum/harbour-devel

thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Sun Jan 28, 2018 08:13 AM
Antonio Linares wrote:Enrico,

I don't think that is a bug as it is reported as a warning


Still I think it's a bug. Anyway, is there a way to suppress it?

Antonio Linares wrote:Anyhow the right place to report it is in the Harbour developers group at:
https://groups.google.com/forum/#!forum/harbour-devel

thanks


It would be wasted time, you know. :-)

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Sun Jan 28, 2018 08:34 AM

Ni idea how to supress that warning...

Regarding reporting it, you will never know it unless you try it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Sun Jan 28, 2018 09:53 AM

I already tried it in the past. And I really have enough of them. Sorry.

EMG

Posts: 58
Joined: Tue Mar 11, 2008 03:18 AM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Mon Jan 29, 2018 01:08 PM
Enrico,
In this case, it would not be ideal to separate the variables
Code (fw): Select all Collapse
FUNCTION MAIN()

    LOCAL i,ii

    FOR i = 1 TO 10
        FOR ii = i TO 5
            ? ii
        NEXT ii
    NEXT i

    INKEY( 0 )

    RETURN NIL
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Mon Jan 29, 2018 01:36 PM

It was only a sample. The point is that there is no valid reason to issue a warning in this case and no compiler in any language issues it.

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Mon Jan 29, 2018 04:29 PM
Enrico Maria Giordano wrote:It was only a sample. The point is that there is no valid reason to issue a warning in this case and no compiler in any language issues it.

EMG


Other compilers do not warn that their code produces an endless loop?
I prefer that the compiler warn me
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Harbour 3.2 Borland 7 32bits 2018/01/27
Posted: Mon Jan 29, 2018 05:52 PM
cnavarro wrote:Other compilers do not warn that their code produces an endless loop?
I prefer that the compiler warn me


No, why should it be? Endless loops are useful sometimes. Anyway, neither Harbour warns on that. It warns the use of the same index variable in nested loops.

EMG

Continue the discussion