hi,
why RvTag variable type changed from string to integer in new versions!?
RvTag variable type
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
On the contrary, it was changed from Integer to String.
The most applications used tags-are-pchars mode, where tags were pointers to dynamically allocated strings. Pointers, type casting, explicit memory allocation - all this stuff made application code unnecessarily complicated and was a source of bugs.
With String tags, code becomes much more simple and clean.
If you need storing integer values, you can use IntToStr and StrToInt.
There is a compiler define allowing to return integer tags, but I do not recommend using it.
The most applications used tags-are-pchars mode, where tags were pointers to dynamically allocated strings. Pointers, type casting, explicit memory allocation - all this stuff made application code unnecessarily complicated and was a source of bugs.
With String tags, code becomes much more simple and clean.
If you need storing integer values, you can use IntToStr and StrToInt.
There is a compiler define allowing to return integer tags, but I do not recommend using it.