How can i create my library (or something like that), that I can save/edit and include it in my file. It should contain functions that I created and the main thing is that I can use them on my variables, for example:
I want to create a function:
appendString(string additionalText) - function in "library"
And to have a variable:
string myString = "Hello " - variable in file (in which I "included" library)
After that, I write:
myString.appendString("World");
So, at the end myString
should be "Hello World".
PLEASE NOTE: THESE FUNCTIONS WILL BE CALLED ON BASIC DATA TYPES, NOT OBJECTS!