[REBOL] Re: [BUG] in mysql-protocol 0.9.9
From: maximo:meteorstudios at: 4-Aug-2003 15:44
hi oldes,
> Maybe it would be good to have some utility which would be able to
> show how many new global variables some rebol code creates:)
this might help !!!!!
;-------------------code start-----------------------
rebol []
myfunc: function [hello][there][
gblvar: "ggogo"
there: 'kkk
print hello
]
gbl-list: query/clear system/words
probe gbl-list
myfunc "print test"
gbl-list: query system/words
probe gbl-list
;--------------
; if I understand what is happening, here, gbl-list
; should only have gbl values which have
; chaged since last query/clear
;--------------
foreach item gbl-list [
probe to-word item
probe value? item
]
ask "done..."
;-------------------code end-----------------------