[AOLSERVER] Question on ns_eval

2013-02-14 Thread Sep Ng
Hello, I've been looking into improve my development environment by using ns_eval to update all the TCL interps everytime I do changes on it. First off, it looks like I have to escape all the special TCL characters on ns_eval. Is this the intended behaviour because I've seen many examples of

Re: [AOLSERVER] Question on ns_eval

2013-02-14 Thread William J. Webb
At the core, we use a slightly different version of: #{{{ eval_source # proc eval_source { filename } { if { [file exists $filename] } { set err [catch { ns_eval [list source $filename] } result] } if { $err } { ns_log notice eval_source ERROR: $result } } else { error file $filename does not

Re: [AOLSERVER] Question on ns_eval

2013-02-14 Thread William J. Webb
On Thursday, February 14, 2013 12:33:26 PM UTC-6, William J. Webb wrote: At the core, we use a slightly different version of: proc eval_source { filename } { if { [file exists $filename] } { set err [catch { ns_eval [list source $filename] } result] if { $err } { ns_log notice

Re: [AOLSERVER] Question on ns_eval

2013-02-14 Thread Sep Ng
Thank you for the responses. I'll conduct some tests. The code I use to reload right now is: eval namespace eval :: source $file so on swtching to ns_eval, I thought to maybe skip the namespace eval. With or without don't seem to make a difference, but I'll continue to look into this. On