Re: Extending existing methods of base classes and Loose Methods.



On 3 Mrz., 13:36, "Esteban A. Maringolo" <eMaring...@xxxxxxxxx> wrote:
Hi Marc,

Marc Michael escribió:

On 25 Feb., 16:01, cenopel...@xxxxxxxxx wrote:
I would use sublcass, or any other way, it would be interested to here
further toths on this subject.

A subclass wouldn't be fine IMO. My application is a simple URL-
Encoder/-Decoder. I want to encode a string. So I simply added a
method urlEncoder to the class String and now I am able to do the
following:

'Hello#World' urlEncode

Just FYI, the Swazoo package, already defines such functionality on
String, trough httpEncoded/httpDecoded methods.

Thanks for the hint. I have taken a look on it. Looks good. He has
made it the other side around; I have created a set which determines
which characters should be encoded, he created a set which determines
which character should not be encoded.

Best wishes,
Marc Michael
.