Hi all,

Consider the following example:

func main()
local bTest := GetBlock()
? Eval( bTest )  // Prints "Hello!" from local var in GetBlock()
return nil

func GetBlock()
local cSomeVar := "Hello!"
return { || cSomeVar }

Is this safe? Will the garbage collector eventually clean this string?

TIA.

Regards,
Randy.


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to