On Fri, 29 Jul 2005, Aric Bills wrote:
By the way, it is possible to define a Tcl procedure whose name is the emptyI use this idiom with tdom fairly regularly. It allows me to write
string. Probably not a good idea,
something like:
[[$node selectNodes $xpath] someMethod]
where $xpath is an xpath expression that might return 0 or 1 nodes. To
avoid having to explicitly deal with the case where no nodes would be returned I define:
proc "" args {}
Michael
On Saturday, July 30, 2005 at 9:02:07 AM UTC+8, Michael A. Cleverly wrote:
On Fri, 29 Jul 2005, Aric Bills wrote:
By the way, it is possible to define a Tcl procedure whose name is the emptyI use this idiom with tdom fairly regularly. It allows me to write
string. Probably not a good idea,
something like:
[[$node selectNodes $xpath] someMethod]
where $xpath is an xpath expression that might return 0 or 1 nodes. To
avoid having to explicitly deal with the case where no nodes would be
returned I define:
proc "" args {}
Michael
I tried using the proc "" args {}
Now I don't see any error, but this function is breaking the flow of
my program. Should I place any statment that continues the
execution? I tried return "none" but of no use.
Jayashree Peluri <[email protected]> wrote:Sorry for waking up the dead 😅 Looks like the program restarted because of another issue. Resolved it now!
On Saturday, July 30, 2005 at 9:02:07 AM UTC+8, Michael A. Cleverly wrote:
On Fri, 29 Jul 2005, Aric Bills wrote:
By the way, it is possible to define a Tcl procedure whose name is the emptyI use this idiom with tdom fairly regularly. It allows me to write
string. Probably not a good idea,
something like:
[[$node selectNodes $xpath] someMethod]
where $xpath is an xpath expression that might return 0 or 1 nodes. To
avoid having to explicitly deal with the case where no nodes would be
returned I define:
proc "" args {}
Michael
I tried using the proc "" args {}Wow, resurrecting a 17 year old thread.....
Now I don't see any error, but this function is breaking the flow of
my program. Should I place any statment that continues the
execution? I tried return "none" but of no use.
Please explain how "this function is breaking the flow of my program".
That statement makes no sense.
On Tuesday, November 8, 2022 at 11:48:56 AM UTC+8, Rich wrote:
Jayashree wrote:
On Saturday, July 30, 2005 at 9:02:07 AM UTC+8, Michael A. Cleverly wrote:
On Fri, 29 Jul 2005, Aric Bills wrote:
By the way, it is possible to define a Tcl procedure whose name is the emptyI use this idiom with tdom fairly regularly. It allows me to write
string. Probably not a good idea,
something like:
[[$node selectNodes $xpath] someMethod]
where $xpath is an xpath expression that might return 0 or 1 nodes. To >> avoid having to explicitly deal with the case where no nodes would be >> returned I define:
proc "" args {}
Michael
I tried using the proc "" args {}Wow, resurrecting a 17 year old thread.....
Now I don't see any error, but this function is breaking the flow of
my program. Should I place any statment that continues the
execution? I tried return "none" but of no use.
Please explain how "this function is breaking the flow of my program". That statement makes no sense.Sorry for waking up the dead 😅 Looks like the program restarted because of another issue. Resolved it now!
I confirm this 'proc "" args {} ' is working wonders! :) Thanks for prompt reply making me reassess the error!
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 03:02:21 |
| Calls: | 12,098 |
| Calls today: | 6 |
| Files: | 15,003 |
| Messages: | 6,517,869 |