Re: source cmd
Vespasian wrote:
If you source in a file containing procedure 'X' mutliple times, does
the interpreter overwrite the existing 'X' or does it create another
copy of 'X' and just return a pointer to the lastest sourced 'X'
If the new procs are defined in the same namespace as the existing ones,
they are simply overwritten, the old ones are lost. There are no pointers
in Tcl... However, you can save the existing procs before overwriting them
with [rename], so it is possible to restore them later.
HTH
Stephan
.
Relevant Pages
- Re: Where else?
... How do you plan to overwrite these? ... Dynamic loader hijack is also in ... pointer... ... Do You Yahoo!? ... (Vuln-Dev) - Re: Clib time functions
... "In most implementations gmtimeand localtimeretrun a pointer to a ... single static data area that is overwritten on every call. ... the returned structure should be used or copied before any subsequent ... pointer to one of these object types may overwrite the information in ... (comp.sys.acorn.programmer) - Re: Auto-add sites to Approved Sites
... or find out where those sites are stored and find some way to overwrite ... Thanks for the pointer, though. ... Matt ... Prev by Date: ... (microsoft.public.windows.inetexplorer.ie6.browser) - Re: [OT]
... Lawrence Kirby wrote: ... Just overwrite the node to be deleted with a ... This is uncritical -- a SecondToLast node pointer can be afforded ... having list nodes stay at the same location for their lifetime is ... (comp.lang.c) - Re: module confusion
... It just happens to contain a pointer to a module. ... Lawrence, you should have a look at CPython's source code. ... which implies that you can overwrite that memory location. ... But it has nothing to do with "overwriting a memory location" - like you could do in C using pointers. ... (comp.lang.python) |
|