FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Prototype missing?
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Prototype missing?
Posted: Sun Oct 02, 2011 11:05 AM

The reason to introduce it is a very technical one:

Clipper never distinguished between constant and non constant strings. And it was a big missing, as a constant string can never be overwritten because that will generate a GPF. Harbour perfectly distinguishes between those different types of strings :-)

Thats why I tell you that Harbour is so good: its technical level is much higher and complete than the one implemented originally by Clipper.

Thats why Harbour is the real Clipper successor :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Prototype missing?
Posted: Sun Oct 02, 2011 11:09 AM
Antonio Linares wrote:The reason to introduce it is a very technical one:

Clipper never distinguished between constant and non constant strings. And it was a big missing, as a constant string can never be overwritten because that will generate a GPF. Harbour perfectly distinguishes between those different types of strings :-)

Thats why I tell you that Harbour is so good: its technical level is much higher and complete than the one implemented originally by Clipper.

Thats why Harbour is the real Clipper successor :-)


Yes, I know. But still I can't use a tool driven by a group of developers that I don't like.

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Prototype missing?
Posted: Sun Oct 02, 2011 11:22 AM

I fully understand what you mean... :-)

Anyhow, we are technicians, and that means that many times we have to make desitions based on technical facts instead of based on personal preferences.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Prototype missing?
Posted: Sun Oct 02, 2011 12:56 PM

Yes, and the technical facts are that Harbour developers broke the compatibility too many times in the past for ununderstandable reasons. And we need of a stable product.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Prototype missing?
Posted: Sun Oct 02, 2011 02:15 PM

Enrico,

yes, I agree with you. There is always a price to pay... :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Prototype missing?
Posted: Mon Oct 03, 2011 05:34 PM
Antonio Linares wrote:The reason to introduce it is a very technical one:

Clipper never distinguished between constant and non constant strings. And it was a big missing, as a constant string can never be overwritten because that will generate a GPF. Harbour perfectly distinguishes between those different types of strings :-)

Thats why I tell you that Harbour is so good: its technical level is much higher and complete than the one implemented originally by Clipper.

Thats why Harbour is the real Clipper successor :-)


This is the xHarbour's prototype of hb_parc():

Code (fw): Select all Collapse
const char * hb_parc( int iParam, ... )


So it seems to return a const char *, just like hb_parvc() is supposed to do.

What am I missing?

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Prototype missing?
Posted: Mon Oct 03, 2011 05:35 PM
And what about this?

Anyway, it won't solve all the problems. As an example, I still see CLIPPER FUNCNAME( PARAMS ) in some places.


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Prototype missing?
Posted: Mon Oct 03, 2011 05:50 PM
Enrico Maria Giordano wrote:And what about this?

Anyway, it won't solve all the problems. As an example, I still see CLIPPER FUNCNAME( PARAMS ) in some places.


EMG


Enrico,

That is kept for Clipper backwards compatibility only. We should use HB_FUNC( FUNCNAME ) instead.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Prototype missing?
Posted: Mon Oct 03, 2011 07:51 PM

So we can change all the remaining CLIPPER FUNCNAME( PARAMS )?

Did you see the other message of mine?

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Prototype missing?
Posted: Tue Oct 04, 2011 06:26 AM

Enrico,

Yes, we should use HB_FUNC( ... ) only

I have compared the code of hb_parc() and hb_parvc() and it seems as they are the same except that hb_parc() does not accept the optional parameters. So the argument for constant and non constant seems useless... :-S

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Prototype missing?
Posted: Tue Oct 04, 2011 08:03 AM

So, can we use hb_parc() instead of hb_parvc()? It's currently used in only 6 sources.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Prototype missing?
Posted: Tue Oct 04, 2011 01:49 PM

Enrico,

Only in those calls where it uses just one parameter

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Prototype missing?
Posted: Tue Oct 04, 2011 04:07 PM

Why? Anyway, all the calls uses two parameters.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Prototype missing?
Posted: Tue Oct 04, 2011 07:03 PM

Because harbour's hb_parc() just accepts one parameter

regards, saludos

Antonio Linares
www.fivetechsoft.com