Hi, for the use of a project I would like to create an extension of the type String (named Message) but I don't know how to do this. I know how to extends a Node but not a type and it doesn't seem to be as simply as "extends String" ;)
for example I would be able to do the following :
var msg : Message
msg = "GZKKI >IEKS"
var msg2 : Message
msg2 = msg.decode()
//msg2 = "HELLO WORLD"
where msg.decode is a method of the type message.
How to do this?
thanks in advance for your help !