Harbour 3.2 Borland 7 32bits 2018/01/27

Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Enrico Maria Giordano » Sat Jan 27, 2018 10:06 pm

I just found a bug:

Code: Select all  Expand view  RUN
FUNCTION MAIN()

    LOCAL i

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

    INKEY( 0 )

    RETURN NIL


Code: Select all  Expand view  RUN
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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Antonio Linares » Sun Jan 28, 2018 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Enrico Maria Giordano » Sun Jan 28, 2018 8: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Antonio Linares » Sun Jan 28, 2018 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Enrico Maria Giordano » Sun Jan 28, 2018 9:53 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby sygecom » Mon Jan 29, 2018 1:08 pm

Enrico,
In this case, it would not be ideal to separate the variables
Code: Select all  Expand view  RUN

FUNCTION MAIN()

    LOCAL i,ii

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

    INKEY( 0 )

    RETURN NIL
User avatar
sygecom
 
Posts: 55
Joined: Tue Mar 11, 2008 3:18 am
Location: Brasil

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Enrico Maria Giordano » Mon Jan 29, 2018 1: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby cnavarro » Mon Jan 29, 2018 4: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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Harbour 3.2 Borland 7 32bits 2018/01/27

Postby Enrico Maria Giordano » Mon Jan 29, 2018 5: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to WhatsNew / Novedades

Who is online

Users browsing this forum: No registered users and 18 guests