From 70a037898aa44a933c0e5c199b7ac97a392eb0f9 Mon Sep 17 00:00:00 2001 From: mescalinum Date: Thu, 10 Nov 2011 21:45:44 +0000 Subject: handle the null (initial) object state correctly, using [info exists ...] svn path=/trunk/externals/tclfile/; revision=15719 --- exists.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exists.tcl b/exists.tcl index 66fa71c..3ae3c58 100644 --- a/exists.tcl +++ b/exists.tcl @@ -16,7 +16,7 @@ proc+ exists::0_symbol {self args} { } proc+ exists::0_bang {self} { - if {$@filename == {}} return + if {![info exists @filename]} return pd::outlet $self 0 float [file exists $@filename] } -- cgit v1.2.1