Mark Propst
Usenet Archive
- Joined
- May 2, 2000
- Messages
- 492
- Reaction score
- 0
Hi all you smart dudes and dudettes!
...example
command1 calls func1 which calls func2
func1 for example opens textfiles x y and z or sets variables 1 2 and 3 func2 opens text files a b and c or sets variables 4 5 and 6
....method1
func2 has a local *error* func that closes a b and c or resets 4 5 and 6 func1 has a local *error* func that closes x y and z or resets 1 2 and 3
....method2
command1 has a local *error* func that closes x y and z or resets 1 2 and 3 and also closes a b and c or resets 4 5 and 6
....questions
are methods 1 and 2 both valid?
if not, why is one or both not valid?
if so, is one preferred?
if not, which is correct? (if either)
or can only the top level function(command) have an error func?
tia
Mark
...example
command1 calls func1 which calls func2
func1 for example opens textfiles x y and z or sets variables 1 2 and 3 func2 opens text files a b and c or sets variables 4 5 and 6
....method1
func2 has a local *error* func that closes a b and c or resets 4 5 and 6 func1 has a local *error* func that closes x y and z or resets 1 2 and 3
....method2
command1 has a local *error* func that closes x y and z or resets 1 2 and 3 and also closes a b and c or resets 4 5 and 6
....questions
are methods 1 and 2 both valid?
if not, why is one or both not valid?
if so, is one preferred?
if not, which is correct? (if either)
or can only the top level function(command) have an error func?
tia
Mark