0
Using Clear Command in Examples with Dependency Code(s) - TBC Review

I have been told by my TBC Reviewer to add 'clear' command in each code I have uploaded. I think the dependency codes are to be executed first before executing the main code. But adding 'clear' command for examples with dependency code makes the functions defined in the dependency code unusable to the main code. The main code says the function name(defined in dependency code) as 'undefined variable'. Plz help..!

All is OK without adding the clear command.


Scilab 04-06-19, 3:06 a.m. Parmanand_Mishra
0

Wherever dependency file is not used, add 'clear' in main program ; if used then add 'clear' at the beginning of dependent code.

07-06-19, 11:42 a.m. Rashmi
dependency file*

07-06-19, 11:43 a.m. Rashmi
what if there are more than one separate dependency codes for a single example? Because adding clear command in one executed later will make the 1st executed dependency code unusable. 

What should I do? -
1- Mention in comment the order of execution of dependency files  OR
2-Combine the codes in one  OR
3-Something Else---


08-06-19, 11:39 p.m. Parmanand_Mishra

Login to add comment


0

Mention in comment the order of execution of dependency file.

09-06-19, 12:13 a.m. Rashmi


Log-in to answer to this question.