It would be
(varptr aString)[index] = someCharacter
But this does not work (used to work till pointers were removed). If you try that now with index 0, the whole string is replaced. Other indices don't work.
And the "must work" or ideal have nothing to do with cross plattform or anything but simply with the modern OO design paradigms that came up the last 10-15 years.
Do you think MS created C# just for fun or Apple objective C? Don't think so.
Its only linux that still focus on a "unsecure" language like C/C++ and its pointer stuff, which is highly critical for a stable and secure OS environment.
Managed does not mean its harder. You just need to come away from old behaviors and "ways" of doing things.
After that, when you learned how the GC works and how to use it efficiently, it will normally not take a quarter the time to program new stuff as you won't have bugs everywhere.
*MaxGUI is a good example. Just forget freegadget once on a button that gets reassigned a new button and you will see why this stuff definitely is outdated way of programming - because you will see a button that does not react to your clicks*
(varptr aString)[index] = someCharacter
But this does not work (used to work till pointers were removed). If you try that now with index 0, the whole string is replaced. Other indices don't work.
And the "must work" or ideal have nothing to do with cross plattform or anything but simply with the modern OO design paradigms that came up the last 10-15 years.
Do you think MS created C# just for fun or Apple objective C? Don't think so.
Its only linux that still focus on a "unsecure" language like C/C++ and its pointer stuff, which is highly critical for a stable and secure OS environment.
Managed does not mean its harder. You just need to come away from old behaviors and "ways" of doing things.
After that, when you learned how the GC works and how to use it efficiently, it will normally not take a quarter the time to program new stuff as you won't have bugs everywhere.
*MaxGUI is a good example. Just forget freegadget once on a button that gets reassigned a new button and you will see why this stuff definitely is outdated way of programming - because you will see a button that does not react to your clicks*