• should I use ENABLE TYPE CLASS HASH?

    From Eduardo Motta@21:1/5 to All on Wed Aug 30 08:06:32 2023
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Eduardo Motta on Wed Aug 30 21:11:11 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Motta@21:1/5 to All on Thu Aug 31 08:15:00 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Eduardo Motta on Thu Aug 31 08:41:56 2023
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Motta@21:1/5 to All on Thu Aug 31 08:47:16 2023
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Eduardo Motta on Thu Aug 31 09:15:06 2023
    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,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Motta@21:1/5 to All on Fri Sep 1 06:23:51 2023
    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,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Eduardo Motta on Fri Sep 1 17:47:59 2023
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eduardo Motta@21:1/5 to All on Sat Sep 2 11:40:10 2023
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Eduardo Motta on Sun Sep 3 08:47:48 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)