Reply To: Added function "GetBinName" to CovPType
Why OSVVM™? › Forums › OSVVM › Added function "GetBinName" to CovPType › Reply To: Added function "GetBinName" to CovPType
March 1, 2016 at 23:01
#1138
Sebastian Dunst
Member
Hi Jim,
thank you very much for adding this function.
But I am a little afraid that there seems to be no easy solution for handling strings with an unknown length. This is a standard issue in most of my procedures or functions.
I always thought that a “local” variable inside a function or a procedure is stored on stack and is automatically freeed when running out of scope.
So there must be something special about the type “line”. Probably some kind of a pointer, which allocates memory in the background.
But what would be your advice for creating strings with an unknown length?
Thanks,
Sebastian