Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Life is a whim of several billion cells to be you for a while.


devel / comp.lang.xharbour / Re: should I use ENABLE TYPE CLASS HASH?

SubjectAuthor
* should I use ENABLE TYPE CLASS HASH?Eduardo Motta
`* Re: should I use ENABLE TYPE CLASS HASH?Ron Pinkas
 `* Re: should I use ENABLE TYPE CLASS HASH?Eduardo Motta
  `* Re: should I use ENABLE TYPE CLASS HASH?Ron Pinkas
   `* Re: should I use ENABLE TYPE CLASS HASH?Eduardo Motta
    `* Re: should I use ENABLE TYPE CLASS HASH?Ron Pinkas
     `* Re: should I use ENABLE TYPE CLASS HASH?Eduardo Motta
      `* Re: should I use ENABLE TYPE CLASS HASH?Ron Pinkas
       `* Re: should I use ENABLE TYPE CLASS HASH?Eduardo Motta
        `- Re: should I use ENABLE TYPE CLASS HASH?Ron Pinkas

1
should I use ENABLE TYPE CLASS HASH?

<1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:7283:0:b0:412:154c:fed with SMTP id v3-20020ac87283000000b00412154c0fedmr98qto.10.1693407993726;
Wed, 30 Aug 2023 08:06:33 -0700 (PDT)
X-Received: by 2002:a05:6870:956d:b0:1ba:5c28:76f1 with SMTP id
v45-20020a056870956d00b001ba5c2876f1mr84900oal.4.1693407992754; Wed, 30 Aug
2023 08:06:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 30 Aug 2023 08:06:32 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=179.93.80.107; posting-account=ciYPUgkAAACP7h-GihPdeC47vCOdy23j
NNTP-Posting-Host: 179.93.80.107
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
Subject: should I use ENABLE TYPE CLASS HASH?
From: eduardo@emotta.com.br (Eduardo Motta)
Injection-Date: Wed, 30 Aug 2023 15:06:33 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1349
 by: Eduardo Motta - Wed, 30 Aug 2023 15:06 UTC

Is there any limitation or problem in using:
ENABLE TYPE CLASS HASH

EXTEND HASH WITH METHOD My_Method

These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?

Re: should I use ENABLE TYPE CLASS HASH?

<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:551d:0:b0:641:8aa6:72e4 with SMTP id pz29-20020ad4551d000000b006418aa672e4mr37832qvb.4.1693455072235;
Wed, 30 Aug 2023 21:11:12 -0700 (PDT)
X-Received: by 2002:a05:6870:3a1d:b0:1c8:e107:4193 with SMTP id
du29-20020a0568703a1d00b001c8e1074193mr546133oab.3.1693455071945; Wed, 30 Aug
2023 21:11:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 30 Aug 2023 21:11:11 -0700 (PDT)
In-Reply-To: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2806:10be:8:24c:ec5c:65e4:cc6c:5a44;
posting-account=8KTLLQoAAABrqmjk_im031yR_2Rimshb
NNTP-Posting-Host: 2806:10be:8:24c:ec5c:65e4:cc6c:5a44
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: ronpinkas@gmail.com (Ron Pinkas)
Injection-Date: Thu, 31 Aug 2023 04:11:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1741
 by: Ron Pinkas - Thu, 31 Aug 2023 04:11 UTC

On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> Is there any limitation or problem in using:
> ENABLE TYPE CLASS HASH
>
> EXTEND HASH WITH METHOD My_Method
>
> These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?

I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.

Ron

Re: should I use ENABLE TYPE CLASS HASH?

<b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:678d:b0:76f:cd2:9745 with SMTP id rr13-20020a05620a678d00b0076f0cd29745mr68822qkn.7.1693494901344;
Thu, 31 Aug 2023 08:15:01 -0700 (PDT)
X-Received: by 2002:a05:6a00:1783:b0:68c:4a78:d32e with SMTP id
s3-20020a056a00178300b0068c4a78d32emr5605pfg.5.1693494900768; Thu, 31 Aug
2023 08:15:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 31 Aug 2023 08:15:00 -0700 (PDT)
In-Reply-To: <d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=179.93.80.107; posting-account=ciYPUgkAAACP7h-GihPdeC47vCOdy23j
NNTP-Posting-Host: 179.93.80.107
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com> <d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: eduardo@emotta.com.br (Eduardo Motta)
Injection-Date: Thu, 31 Aug 2023 15:15:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 23
 by: Eduardo Motta - Thu, 31 Aug 2023 15:15 UTC

Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.

When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.

thanks

Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > Is there any limitation or problem in using:
> > ENABLE TYPE CLASS HASH
> >
> > EXTEND HASH WITH METHOD My_Method
> >
> > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
>
> Ron

Re: should I use ENABLE TYPE CLASS HASH?

<9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:186a:b0:64a:8012:ac8e with SMTP id eh10-20020a056214186a00b0064a8012ac8emr82863qvb.4.1693496516761;
Thu, 31 Aug 2023 08:41:56 -0700 (PDT)
X-Received: by 2002:a4a:4f07:0:b0:571:287f:bce8 with SMTP id
c7-20020a4a4f07000000b00571287fbce8mr7855oob.1.1693496516499; Thu, 31 Aug
2023 08:41:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 31 Aug 2023 08:41:56 -0700 (PDT)
In-Reply-To: <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2806:10be:8:24c:ec5c:65e4:cc6c:5a44;
posting-account=8KTLLQoAAABrqmjk_im031yR_2Rimshb
NNTP-Posting-Host: 2806:10be:8:24c:ec5c:65e4:cc6c:5a44
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com> <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: ronpinkas@gmail.com (Ron Pinkas)
Injection-Date: Thu, 31 Aug 2023 15:41:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2441
 by: Ron Pinkas - Thu, 31 Aug 2023 15:41 UTC

On Thursday, August 31, 2023 at 10:15:02 AM UTC-5, Eduardo Motta wrote:
> Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.
>
> When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.
>
> thanks
> Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> > On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > > Is there any limitation or problem in using:
> > > ENABLE TYPE CLASS HASH
> > >
> > > EXTEND HASH WITH METHOD My_Method
> > >
> > > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> > I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
> >
> > Ron
FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.

Re: should I use ENABLE TYPE CLASS HASH?

<b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:4003:b0:63c:edce:c71e with SMTP id kd3-20020a056214400300b0063cedcec71emr106889qvb.3.1693496837978;
Thu, 31 Aug 2023 08:47:17 -0700 (PDT)
X-Received: by 2002:a17:902:f344:b0:1bb:a13a:c21e with SMTP id
q4-20020a170902f34400b001bba13ac21emr3520ple.10.1693496837393; Thu, 31 Aug
2023 08:47:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 31 Aug 2023 08:47:16 -0700 (PDT)
In-Reply-To: <9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=179.93.80.107; posting-account=ciYPUgkAAACP7h-GihPdeC47vCOdy23j
NNTP-Posting-Host: 179.93.80.107
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com> <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
<9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: eduardo@emotta.com.br (Eduardo Motta)
Injection-Date: Thu, 31 Aug 2023 15:47:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2802
 by: Eduardo Motta - Thu, 31 Aug 2023 15:47 UTC

Very good Ron,

I think about things like this:
myHash:Get("field name") // returns NIL if there are none
myHash:keys // returns the keys

MyArray:sort
MyArray:map
MyArray:each
MyArray:reduce

etc

Em quinta-feira, 31 de agosto de 2023 às 12:41:58 UTC-3, Ron Pinkas escreveu:
> On Thursday, August 31, 2023 at 10:15:02 AM UTC-5, Eduardo Motta wrote:
> > Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.
> >
> > When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.
> >
> > thanks
> > Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> > > On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > > > Is there any limitation or problem in using:
> > > > ENABLE TYPE CLASS HASH
> > > >
> > > > EXTEND HASH WITH METHOD My_Method
> > > >
> > > > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> > > I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
> > >
> > > Ron
> FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.

Re: should I use ENABLE TYPE CLASS HASH?

<2e6acf4b-2edd-4144-934e-8a7e6294c293n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:559b:0:b0:63f:c0b9:e08a with SMTP id f27-20020ad4559b000000b0063fc0b9e08amr86333qvx.4.1693498507876;
Thu, 31 Aug 2023 09:15:07 -0700 (PDT)
X-Received: by 2002:a05:6a00:a21:b0:68c:1004:1fd7 with SMTP id
p33-20020a056a000a2100b0068c10041fd7mr21607pfh.6.1693498507256; Thu, 31 Aug
2023 09:15:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 31 Aug 2023 09:15:06 -0700 (PDT)
In-Reply-To: <b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2806:10be:8:24c:ec5c:65e4:cc6c:5a44;
posting-account=8KTLLQoAAABrqmjk_im031yR_2Rimshb
NNTP-Posting-Host: 2806:10be:8:24c:ec5c:65e4:cc6c:5a44
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com> <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
<9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com> <b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2e6acf4b-2edd-4144-934e-8a7e6294c293n@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: ronpinkas@gmail.com (Ron Pinkas)
Injection-Date: Thu, 31 Aug 2023 16:15:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3086
 by: Ron Pinkas - Thu, 31 Aug 2023 16:15 UTC

On Thursday, August 31, 2023 at 10:47:19 AM UTC-5, Eduardo Motta wrote:
> Very good Ron,
>
> I think about things like this:
> myHash:Get("field name") // returns NIL if there are none
> myHash:keys // returns the keys
>
> MyArray:sort
> MyArray:map
> MyArray:each
> MyArray:reduce
>
> etc
> Em quinta-feira, 31 de agosto de 2023 às 12:41:58 UTC-3, Ron Pinkas escreveu:
> > On Thursday, August 31, 2023 at 10:15:02 AM UTC-5, Eduardo Motta wrote:
> > > Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.
> > >
> > > When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.
> > >
> > > thanks
> > > Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> > > > On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > > > > Is there any limitation or problem in using:
> > > > > ENABLE TYPE CLASS HASH
> > > > >
> > > > > EXTEND HASH WITH METHOD My_Method
> > > > >
> > > > > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> > > > I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
> > > >
> > > > Ron
> > FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.

Cool,

Re: should I use ENABLE TYPE CLASS HASH?

<b2ce25ef-e10b-4f1f-9fe6-ecbb42b9625fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:15d:b0:76e:1a6a:166 with SMTP id e29-20020a05620a015d00b0076e1a6a0166mr84985qkn.0.1693574632070;
Fri, 01 Sep 2023 06:23:52 -0700 (PDT)
X-Received: by 2002:a05:6808:14c8:b0:3a7:cccd:33d7 with SMTP id
f8-20020a05680814c800b003a7cccd33d7mr69213oiw.8.1693574631716; Fri, 01 Sep
2023 06:23:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 1 Sep 2023 06:23:51 -0700 (PDT)
In-Reply-To: <2e6acf4b-2edd-4144-934e-8a7e6294c293n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=179.93.80.107; posting-account=ciYPUgkAAACP7h-GihPdeC47vCOdy23j
NNTP-Posting-Host: 179.93.80.107
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com> <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
<9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com> <b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>
<2e6acf4b-2edd-4144-934e-8a7e6294c293n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b2ce25ef-e10b-4f1f-9fe6-ecbb42b9625fn@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: eduardo@emotta.com.br (Eduardo Motta)
Injection-Date: Fri, 01 Sep 2023 13:23:52 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3395
 by: Eduardo Motta - Fri, 1 Sep 2023 13:23 UTC

Ron, where is the program tests/tstsplice.prg

+ tests/tstsplice.prg
+ Test sample for new aSplce(), aRemove(), aMerge()

Em quinta-feira, 31 de agosto de 2023 às 13:15:09 UTC-3, Ron Pinkas escreveu:
> On Thursday, August 31, 2023 at 10:47:19 AM UTC-5, Eduardo Motta wrote:
> > Very good Ron,
> >
> > I think about things like this:
> > myHash:Get("field name") // returns NIL if there are none
> > myHash:keys // returns the keys
> >
> > MyArray:sort
> > MyArray:map
> > MyArray:each
> > MyArray:reduce
> >
> > etc
> > Em quinta-feira, 31 de agosto de 2023 às 12:41:58 UTC-3, Ron Pinkas escreveu:
> > > On Thursday, August 31, 2023 at 10:15:02 AM UTC-5, Eduardo Motta wrote:
> > > > Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.
> > > >
> > > > When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.
> > > >
> > > > thanks
> > > > Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> > > > > On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > > > > > Is there any limitation or problem in using:
> > > > > > ENABLE TYPE CLASS HASH
> > > > > >
> > > > > > EXTEND HASH WITH METHOD My_Method
> > > > > >
> > > > > > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> > > > > I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
> > > > >
> > > > > Ron
> > > FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.
> Cool,

Re: should I use ENABLE TYPE CLASS HASH?

<7ea4c279-291f-4f8d-bfc9-d8c8efae0bbbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:243:b0:76d:bea6:7ec1 with SMTP id q3-20020a05620a024300b0076dbea67ec1mr94960qkn.12.1693615680561;
Fri, 01 Sep 2023 17:48:00 -0700 (PDT)
X-Received: by 2002:a17:903:280e:b0:1bc:5182:1ddb with SMTP id
kp14-20020a170903280e00b001bc51821ddbmr1181581plb.3.1693615679983; Fri, 01
Sep 2023 17:47:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 1 Sep 2023 17:47:59 -0700 (PDT)
In-Reply-To: <b2ce25ef-e10b-4f1f-9fe6-ecbb42b9625fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2806:10be:8:1566:b541:edb:14ab:4c62;
posting-account=8KTLLQoAAABrqmjk_im031yR_2Rimshb
NNTP-Posting-Host: 2806:10be:8:1566:b541:edb:14ab:4c62
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com> <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
<9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com> <b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>
<2e6acf4b-2edd-4144-934e-8a7e6294c293n@googlegroups.com> <b2ce25ef-e10b-4f1f-9fe6-ecbb42b9625fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7ea4c279-291f-4f8d-bfc9-d8c8efae0bbbn@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: ronpinkas@gmail.com (Ron Pinkas)
Injection-Date: Sat, 02 Sep 2023 00:48:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3693
 by: Ron Pinkas - Sat, 2 Sep 2023 00:47 UTC

On Friday, September 1, 2023 at 8:23:53 AM UTC-5, Eduardo Motta wrote:
> Ron, where is the program tests/tstsplice.prg
>
> + tests/tstsplice.prg
> + Test sample for new aSplce(), aRemove(), aMerge()
> Em quinta-feira, 31 de agosto de 2023 às 13:15:09 UTC-3, Ron Pinkas escreveu:
> > On Thursday, August 31, 2023 at 10:47:19 AM UTC-5, Eduardo Motta wrote:
> > > Very good Ron,
> > >
> > > I think about things like this:
> > > myHash:Get("field name") // returns NIL if there are none
> > > myHash:keys // returns the keys
> > >
> > > MyArray:sort
> > > MyArray:map
> > > MyArray:each
> > > MyArray:reduce
> > >
> > > etc
> > > Em quinta-feira, 31 de agosto de 2023 às 12:41:58 UTC-3, Ron Pinkas escreveu:
> > > > On Thursday, August 31, 2023 at 10:15:02 AM UTC-5, Eduardo Motta wrote:
> > > > > Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.
> > > > >
> > > > > When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.
> > > > >
> > > > > thanks
> > > > > Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> > > > > > On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > > > > > > Is there any limitation or problem in using:
> > > > > > > ENABLE TYPE CLASS HASH
> > > > > > >
> > > > > > > EXTEND HASH WITH METHOD My_Method
> > > > > > >
> > > > > > > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> > > > > > I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
> > > > > >
> > > > > > Ron
> > > > FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.
> > Cool,

Very strange, I do not know.

Re: should I use ENABLE TYPE CLASS HASH?

<bc0f6da8-9c7c-47a8-8467-09bffe8f06f5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:8b0e:b0:76f:cd2:8583 with SMTP id qw14-20020a05620a8b0e00b0076f0cd28583mr113722qkn.4.1693680011053;
Sat, 02 Sep 2023 11:40:11 -0700 (PDT)
X-Received: by 2002:a63:368b:0:b0:565:e682:f975 with SMTP id
d133-20020a63368b000000b00565e682f975mr1185741pga.0.1693680010488; Sat, 02
Sep 2023 11:40:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sat, 2 Sep 2023 11:40:10 -0700 (PDT)
In-Reply-To: <7ea4c279-291f-4f8d-bfc9-d8c8efae0bbbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=179.93.80.107; posting-account=ciYPUgkAAACP7h-GihPdeC47vCOdy23j
NNTP-Posting-Host: 179.93.80.107
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com> <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
<9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com> <b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>
<2e6acf4b-2edd-4144-934e-8a7e6294c293n@googlegroups.com> <b2ce25ef-e10b-4f1f-9fe6-ecbb42b9625fn@googlegroups.com>
<7ea4c279-291f-4f8d-bfc9-d8c8efae0bbbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bc0f6da8-9c7c-47a8-8467-09bffe8f06f5n@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: eduardo@emotta.com.br (Eduardo Motta)
Injection-Date: Sat, 02 Sep 2023 18:40:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4342
 by: Eduardo Motta - Sat, 2 Sep 2023 18:40 UTC

Ron, I found the commit you made when implementing aSplice, aMerge, etc... Apparently you didn't upload tests/tstsplice.prg

I'm going to do some things with these functions this week and I'm already preparing an example of using them too, ok?

If you want to check the commit is in the link below:

https://github.com/ronpinkas/xharbour/commit/43b6884bde72ea632f71fc0317fec226c561112c

PS: It's amazing that I didn't know these functions!

Em sexta-feira, 1 de setembro de 2023 às 21:48:01 UTC-3, Ron Pinkas escreveu:
> On Friday, September 1, 2023 at 8:23:53 AM UTC-5, Eduardo Motta wrote:
> > Ron, where is the program tests/tstsplice.prg
> >
> > + tests/tstsplice.prg
> > + Test sample for new aSplce(), aRemove(), aMerge()
> > Em quinta-feira, 31 de agosto de 2023 às 13:15:09 UTC-3, Ron Pinkas escreveu:
> > > On Thursday, August 31, 2023 at 10:47:19 AM UTC-5, Eduardo Motta wrote:
> > > > Very good Ron,
> > > >
> > > > I think about things like this:
> > > > myHash:Get("field name") // returns NIL if there are none
> > > > myHash:keys // returns the keys
> > > >
> > > > MyArray:sort
> > > > MyArray:map
> > > > MyArray:each
> > > > MyArray:reduce
> > > >
> > > > etc
> > > > Em quinta-feira, 31 de agosto de 2023 às 12:41:58 UTC-3, Ron Pinkas escreveu:
> > > > > On Thursday, August 31, 2023 at 10:15:02 AM UTC-5, Eduardo Motta wrote:
> > > > > > Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.
> > > > > >
> > > > > > When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.
> > > > > >
> > > > > > thanks
> > > > > > Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> > > > > > > On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > > > > > > > Is there any limitation or problem in using:
> > > > > > > > ENABLE TYPE CLASS HASH
> > > > > > > >
> > > > > > > > EXTEND HASH WITH METHOD My_Method
> > > > > > > >
> > > > > > > > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> > > > > > > I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
> > > > > > >
> > > > > > > Ron
> > > > > FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.
> > > Cool,
> Very strange, I do not know.

Re: should I use ENABLE TYPE CLASS HASH?

<6745c4f6-c273-4ccd-a4c1-c78acc80ace9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:186e:b0:63c:fe6e:bb4 with SMTP id eh14-20020a056214186e00b0063cfe6e0bb4mr171453qvb.0.1693756070087;
Sun, 03 Sep 2023 08:47:50 -0700 (PDT)
X-Received: by 2002:a17:903:41d0:b0:1c0:77b8:bb1e with SMTP id
u16-20020a17090341d000b001c077b8bb1emr2706023ple.7.1693756069685; Sun, 03 Sep
2023 08:47:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sun, 3 Sep 2023 08:47:48 -0700 (PDT)
In-Reply-To: <bc0f6da8-9c7c-47a8-8467-09bffe8f06f5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2806:10be:8:1566:1554:b4f1:fa5b:6603;
posting-account=8KTLLQoAAABrqmjk_im031yR_2Rimshb
NNTP-Posting-Host: 2806:10be:8:1566:1554:b4f1:fa5b:6603
References: <1430441c-2405-464d-b9c7-510e01b91cebn@googlegroups.com>
<d1b4586e-0959-4e54-957e-6183001e1f9an@googlegroups.com> <b7f9ba37-85e5-4152-ab51-3c866749f9b9n@googlegroups.com>
<9f6275e7-2f9f-4a69-ad28-ccc32f8ab681n@googlegroups.com> <b723816a-adf7-470a-96bc-73dc2e9ab517n@googlegroups.com>
<2e6acf4b-2edd-4144-934e-8a7e6294c293n@googlegroups.com> <b2ce25ef-e10b-4f1f-9fe6-ecbb42b9625fn@googlegroups.com>
<7ea4c279-291f-4f8d-bfc9-d8c8efae0bbbn@googlegroups.com> <bc0f6da8-9c7c-47a8-8467-09bffe8f06f5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6745c4f6-c273-4ccd-a4c1-c78acc80ace9n@googlegroups.com>
Subject: Re: should I use ENABLE TYPE CLASS HASH?
From: ronpinkas@gmail.com (Ron Pinkas)
Injection-Date: Sun, 03 Sep 2023 15:47:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4891
 by: Ron Pinkas - Sun, 3 Sep 2023 15:47 UTC

On Saturday, September 2, 2023 at 1:40:12 PM UTC-5, Eduardo Motta wrote:
> Ron, I found the commit you made when implementing aSplice, aMerge, etc.... Apparently you didn't upload tests/tstsplice.prg
>
> I'm going to do some things with these functions this week and I'm already preparing an example of using them too, ok?
>
> If you want to check the commit is in the link below:
>
> https://github.com/ronpinkas/xharbour/commit/43b6884bde72ea632f71fc0317fec226c561112c
>
> PS: It's amazing that I didn't know these functions!
> Em sexta-feira, 1 de setembro de 2023 às 21:48:01 UTC-3, Ron Pinkas escreveu:
> > On Friday, September 1, 2023 at 8:23:53 AM UTC-5, Eduardo Motta wrote:
> > > Ron, where is the program tests/tstsplice.prg
> > >
> > > + tests/tstsplice.prg
> > > + Test sample for new aSplce(), aRemove(), aMerge()
> > > Em quinta-feira, 31 de agosto de 2023 às 13:15:09 UTC-3, Ron Pinkas escreveu:
> > > > On Thursday, August 31, 2023 at 10:47:19 AM UTC-5, Eduardo Motta wrote:
> > > > > Very good Ron,
> > > > >
> > > > > I think about things like this:
> > > > > myHash:Get("field name") // returns NIL if there are none
> > > > > myHash:keys // returns the keys
> > > > >
> > > > > MyArray:sort
> > > > > MyArray:map
> > > > > MyArray:each
> > > > > MyArray:reduce
> > > > >
> > > > > etc
> > > > > Em quinta-feira, 31 de agosto de 2023 às 12:41:58 UTC-3, Ron Pinkas escreveu:
> > > > > > On Thursday, August 31, 2023 at 10:15:02 AM UTC-5, Eduardo Motta wrote:
> > > > > > > Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.
> > > > > > >
> > > > > > > When I do, I intend to make the code available in the xHarbour repository samples for use by more people in the community.
> > > > > > >
> > > > > > > thanks
> > > > > > > Em quinta-feira, 31 de agosto de 2023 às 01:11:13 UTC-3, Ron Pinkas escreveu:
> > > > > > > > On Wednesday, August 30, 2023 at 10:06:36 AM UTC-5, Eduardo Motta wrote:
> > > > > > > > > Is there any limitation or problem in using:
> > > > > > > > > ENABLE TYPE CLASS HASH
> > > > > > > > >
> > > > > > > > > EXTEND HASH WITH METHOD My_Method
> > > > > > > > >
> > > > > > > > > These resources have existed for many years but I've never seen anyone say they use them. Is the use recommended? Do you have any limitation or performance loss or bug?
> > > > > > > > I implemented it so many years ago I truly do not remember. To the best of my knowledge it should work properly.
> > > > > > > >
> > > > > > > > Ron
> > > > > > FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.
> > > > Cool,
> > Very strange, I do not know.

Thanks for the discovery. Very strange that no one noticed the missing tstsplice.prg before. Sadly I do bot have access to the computer I used back then because I can't find that sample file anywhere on my existing disks.

Ron

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor