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?
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
Ron, my idea is to implement some cool stuff that I use in Ruby, mainly hash and array manipulation.FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.
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
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.
FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.Ron
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.
FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.Ron
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.
Cool,FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.Ron
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.
Cool,FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.Ron
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.
Very strange, I do not know.Cool,FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.Ron
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.
Very strange, I do not know.Cool,FWIW, IIRC, I did add few popular array manipulation functions, like aSplice(), aMerge(), etc.Ron
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 251 |
Nodes: | 16 (0 / 16) |
Uptime: | 03:24:02 |
Calls: | 5,571 |
Files: | 11,686 |
Messages: | 5,131,680 |