Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The sooner all the animals are extinct, the sooner we'll find their money. -- Ed Bluestone


devel / comp.lang.xharbour / Re: Implicit starting function MAIN

SubjectAuthor
* Implicit starting function MAINEnrico Maria Giordano
+- Re: Implicit starting function MAINEnrico Maria Giordano
`* Re: Implicit starting function MAINRon Pinkas
 `* Re: Implicit starting function MAINEnrico Maria Giordano
  `* Re: Implicit starting function MAINRon Pinkas
   `* Re: Implicit starting function MAINEnrico Maria Giordano
    `* Re: Implicit starting function MAINRon Pinkas
     `* Re: Implicit starting function MAINEnrico Maria Giordano
      `* Re: Implicit starting function MAINRon Pinkas
       `- Re: Implicit starting function MAINEnrico Maria Giordano

1
Implicit starting function MAIN

<unlpun$2enjh$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18485&group=comp.lang.xharbour#18485

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Implicit starting function MAIN
Date: Wed, 10 Jan 2024 11:01:59 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <unlpun$2enjh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Jan 2024 10:01:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="df8ed8af46c80fa7a13eb937bb5b2652";
logging-data="2580081"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kf539wevXuqxci5jL0gYf"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:KCV1c8RlHL9+U3XHpIAuX+1ThPI=
Content-Language: it
 by: Enrico Maria Giordan - Wed, 10 Jan 2024 10:01 UTC

I noticed that in Harbour the function MAIN is the implicit starting
function by default. Can we do the same for xHarbour?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: Implicit starting function MAIN

<unlq80$2enjh$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18486&group=comp.lang.xharbour#18486

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Wed, 10 Jan 2024 11:06:56 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <unlq80$2enjh$2@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Jan 2024 10:06:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="df8ed8af46c80fa7a13eb937bb5b2652";
logging-data="2580081"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+o8NbJfECgPvk8WqKV7uL3"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9eyFoaTcyyX8js1dFXfepp8bgDk=
Content-Language: it
In-Reply-To: <unlpun$2enjh$1@dont-email.me>
 by: Enrico Maria Giordan - Wed, 10 Jan 2024 10:06 UTC

Il 10/01/2024 11:01, Enrico Maria Giordano ha scritto:

> I noticed that in Harbour the function MAIN is the implicit starting
> function by default. Can we do the same for xHarbour?

I forgot to mention one important thing: MAIN is already the implicit
starting function if it is in the first linked module but not if it is
in one of the other modules.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: Implicit starting function MAIN

<unmg94$2i93h$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18490&group=comp.lang.xharbour#18490

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Wed, 10 Jan 2024 11:22:55 -0500
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <unmg94$2i93h$1@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me>
MIME-Version: 1.0
Injection-Date: Wed, 10 Jan 2024 16:23:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="76469f0744eed278956d9d3bf377d676";
logging-data="2696305"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FbpbkgtFOrhM409NjwDWGDjgrKqWhzFY="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:Tol5ydEg5V1OCQWvrfu+chSGEV8=
 by: Ron Pinkas - Wed, 10 Jan 2024 16:22 UTC

Enrico Maria Giordano wrote:
>
> I noticed that in Harbour the function MAIN is the implicit starting
> function by default. Can we do the same for xHarbour?
>

I am shocked. This REALLY breaks Clipper compatability!

They refused so many of my contributions that did not break comptabilily
like adding an extra argument to aDel() or supporting negative argument
for SubStr(), with the excuse that it would "BREAK Clipper ERROR
COMPATABILITY" :)

Anyway I do not see any reason to make such change.

Ron

Re: Implicit starting function MAIN

<unmmii$2j7r2$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18491&group=comp.lang.xharbour#18491

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Wed, 10 Jan 2024 19:10:26 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <unmmii$2j7r2$1@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me> <unmg94$2i93h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Jan 2024 18:10:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="df8ed8af46c80fa7a13eb937bb5b2652";
logging-data="2727778"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mnQJ5CkKxgDCote2El2Rx"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3lUM4YIEgUxQbd/+uuwnFM/Vv7w=
Content-Language: it
In-Reply-To: <unmg94$2i93h$1@dont-email.me>
 by: Enrico Maria Giordan - Wed, 10 Jan 2024 18:10 UTC

Il 10/01/2024 17:22, Ron Pinkas ha scritto:

>> I noticed that in Harbour the function MAIN is the implicit starting
>> function by default. Can we do the same for xHarbour?
>
> I am shocked. This REALLY breaks Clipper compatability!
>
> They refused so many of my contributions that did not break comptabilily
> like adding an extra argument to aDel() or supporting negative argument
> for SubStr(), with the excuse that it would "BREAK Clipper ERROR
> COMPATABILITY" :)
>
> Anyway I do not see any reason to make such change.

I see one: many compilers (at least MSC and BCC CLANG) allow parallel
compilation of multiple modules. This speed up the compilation a lot,
but the order of the modules is unpredictable so the MAIN function could
not be in the first linked module. But don't worry, there are other ways
to achieve the same, no problem. Anyway, who cares of Clipper
compatibility nowadays?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: Implicit starting function MAIN

<unn08j$2korq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18492&group=comp.lang.xharbour#18492

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Wed, 10 Jan 2024 15:55:46 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <unn08j$2korq$1@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me> <unmg94$2i93h$1@dont-email.me> <unmmii$2j7r2$1@dont-email.me>
MIME-Version: 1.0
Injection-Date: Wed, 10 Jan 2024 20:55:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0e42ad365fb8b0f91a5f2b9131513434";
logging-data="2777978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YFS3Oz1LuUVg7qjzBMrb0P2yPu5Py0O8="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:3fzaC8snKfMH0I32u3aCH7Adpng=
 by: Ron Pinkas - Wed, 10 Jan 2024 20:55 UTC

Enrico Maria Giordano wrote:
>
>
> Il 10/01/2024 17:22, Ron Pinkas ha scritto:
>
> > > I noticed that in Harbour the function MAIN is the implicit starting
> > > function by default. Can we do the same for xHarbour?
> >
> > I am shocked. This REALLY breaks Clipper compatability!
> >
> > They refused so many of my contributions that did not break comptabilily
> > like adding an extra argument to aDel() or supporting negative argument
> > for SubStr(), with the excuse that it would "BREAK Clipper ERROR
> > COMPATABILITY" :)
> >
> > Anyway I do not see any reason to make such change.
>
> I see one: many compilers (at least MSC and BCC CLANG) allow parallel
> compilation of multiple modules. This speed up the compilation a lot,
> but the order of the modules is unpredictable so the MAIN function could
> not be in the first linked module. But don't worry, there are other ways
> to achieve the same, no problem. Anyway, who cares of Clipper
> compatibility nowadays?
>

I think compiling can be paralel but link is one command with explicit
order running afer all compiler threads ended.

Re: Implicit starting function MAIN

<unn4r0$2lh08$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18493&group=comp.lang.xharbour#18493

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Wed, 10 Jan 2024 23:13:52 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <unn4r0$2lh08$1@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me> <unmg94$2i93h$1@dont-email.me>
<unmmii$2j7r2$1@dont-email.me> <unn08j$2korq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Jan 2024 22:13:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="df8ed8af46c80fa7a13eb937bb5b2652";
logging-data="2802696"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+58xRIoz2+oQb+HlwCBdqq"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4JdI1qC8G3cI1HTfP89/Bgsih6I=
In-Reply-To: <unn08j$2korq$1@dont-email.me>
Content-Language: it
 by: Enrico Maria Giordan - Wed, 10 Jan 2024 22:13 UTC

Il 10/01/2024 21:55, Ron Pinkas ha scritto:

> I think compiling can be paralel but link is one command with explicit
> order running afer all compiler threads ended.

Yes, but you will need an explicit list of the modules. I would prefer
to use *.obj instead.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: Implicit starting function MAIN

<unnpkc$2s45g$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18495&group=comp.lang.xharbour#18495

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Wed, 10 Jan 2024 23:08:38 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <unnpkc$2s45g$1@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me> <unmg94$2i93h$1@dont-email.me> <unmmii$2j7r2$1@dont-email.me> <unn08j$2korq$1@dont-email.me> <unn4r0$2lh08$1@dont-email.me>
MIME-Version: 1.0
Injection-Date: Thu, 11 Jan 2024 04:08:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3c0b78b4eed18640f633415ff9d9466a";
logging-data="3018928"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Fcuc4Qbn/TP6vY2FwudI/lp1mvdIp8aA="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:rArlFAnodNwIYMcFv7fHn3fiNcg=
 by: Ron Pinkas - Thu, 11 Jan 2024 04:08 UTC

Enrico Maria Giordano wrote:
>
>
> Il 10/01/2024 21:55, Ron Pinkas ha scritto:
>
> > I think compiling can be paralel but link is one command with explicit
> > order running afer all compiler threads ended.
>
> Yes, but you will need an explicit list of the modules. I would prefer
> to use *.obj instead.
>

I would strongly discourage such practice.

1. We already have proper explicit single link command per executable.
2. If/when paralel compilation is configured many targets can be built
in paaralel and *.obj is dangerous (even without multiple targets)
3. Many link command use C startup module which must be first
4. Many librarries/linker combos require --start-group --end-group

I do understand you might mean only in context of prgs only project
but I would still insistt it is dangerous.

Re: Implicit starting function MAIN

<unocjq$2u25p$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18499&group=comp.lang.xharbour#18499

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Thu, 11 Jan 2024 10:32:43 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <unocjq$2u25p$3@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me> <unmg94$2i93h$1@dont-email.me>
<unmmii$2j7r2$1@dont-email.me> <unn08j$2korq$1@dont-email.me>
<unn4r0$2lh08$1@dont-email.me> <unnpkc$2s45g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 11 Jan 2024 09:32:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a557fa762386a819aae72b3954104dd7";
logging-data="3082425"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192HU47235Bwxqi9tRYjkHM"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9bX75/tth4Uc+Z0bJjjuVD/ngl0=
Content-Language: it
In-Reply-To: <unnpkc$2s45g$1@dont-email.me>
 by: Enrico Maria Giordan - Thu, 11 Jan 2024 09:32 UTC

Il 11/01/2024 05:08, Ron Pinkas ha scritto:

>> Yes, but you will need an explicit list of the modules. I would prefer
>> to use *.obj instead.
>
> I would strongly discourage such practice.

Sorry, but I'm using it for my work and it is working perfectly.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: Implicit starting function MAIN

<unp2h7$31p51$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18502&group=comp.lang.xharbour#18502

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Thu, 11 Jan 2024 10:46:47 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <unp2h7$31p51$3@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me> <unmg94$2i93h$1@dont-email.me> <unmmii$2j7r2$1@dont-email.me> <unn08j$2korq$1@dont-email.me> <unn4r0$2lh08$1@dont-email.me> <unnpkc$2s45g$1@dont-email.me> <unocjq$2u25p$3@dont-email.me>
MIME-Version: 1.0
Injection-Date: Thu, 11 Jan 2024 15:46:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3c0b78b4eed18640f633415ff9d9466a";
logging-data="3204257"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1920n7doGaaYNr8/sDqmg5hBFAFxPCS8AM="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:C2owb/14Tesf5Bbljz2NL86jXbU=
 by: Ron Pinkas - Thu, 11 Jan 2024 15:46 UTC

Enrico Maria Giordano wrote:
>
>
> Il 11/01/2024 05:08, Ron Pinkas ha scritto:
>
> > > Yes, but you will need an explicit list of the modules. I would prefer
> > > to use *.obj instead.
> >
> > I would strongly discourage such practice.
>
> Sorry, but I'm using it for my work and it is working perfectly.
>

Clipper, Harbour, and xHarbour allready have such feature - you just need
to name your startup procedure _AppMain().

Re: Implicit starting function MAIN

<unpa0q$3303j$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18505&group=comp.lang.xharbour#18505

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: Implicit starting function MAIN
Date: Thu, 11 Jan 2024 18:54:35 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <unpa0q$3303j$3@dont-email.me>
References: <unlpun$2enjh$1@dont-email.me> <unmg94$2i93h$1@dont-email.me>
<unmmii$2j7r2$1@dont-email.me> <unn08j$2korq$1@dont-email.me>
<unn4r0$2lh08$1@dont-email.me> <unnpkc$2s45g$1@dont-email.me>
<unocjq$2u25p$3@dont-email.me> <unp2h7$31p51$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 11 Jan 2024 17:54:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a557fa762386a819aae72b3954104dd7";
logging-data="3244147"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2Gb2NldnxqbfCmr/ARHB2"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:PhljPYU1Ccgz7CYOCfaGv6LPAzQ=
In-Reply-To: <unp2h7$31p51$3@dont-email.me>
Content-Language: it
 by: Enrico Maria Giordan - Thu, 11 Jan 2024 17:54 UTC

Il 11/01/2024 16:46, Ron Pinkas ha scritto:

> Clipper, Harbour, and xHarbour allready have such feature - you just need
> to name your startup procedure _AppMain().

Great, works perfectly, thank you! :-)

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor