ok i'm working on benchmarks and i'm a little confused with Run()
I have a benchmark.brs lets say that has Main() and it wants to do a call to Run() with "pkg:/run_test.brs"
but when I try it I get that line 1, error code &had: SUB or FUNCTION defined twice.
When I call Run() from the documentation "Args may be passed to the scripts Main() function, and the called script may return arguments." so i figure i need something like sub Main(args) but yes I already have one in my bechmarks.brs...
I did look at the provided example... "Run("pkg:/test.brs")"
but the example does not give the source code for "test.brs" for me to look at... Do I have to not use Main() and give some other subroutine name, if so how do I specify the subroutine name to call, is it the first parameter...
Or do I need to put it in some other directory, lib sub directory tests and then it would not conflict... sort of namespace kind of thing... (ok tried that, didn't work)
Please help
I would really like to finish todays benchmarks of all built in functions...
then i can move to statements and finally components...
oh yeah and porting those famous 40 benchmarks i keep mentioning, but never get too...
i figured i would do all the easy ones so i could learn the language and then get to porting stuff written in other languages....