Brandon
2013-09-05 16:06:06
Not sure if this is a Lape or Simba bug but it needs fixing and I can't find the Simba/Lape bug section anywhere (Seems to be a Simba bug since PS/Lape interpretter switching doesn't make a difference).. but here goes..
Foo.Simba:
Bar.Simba:
Notice the cyclical dependencies.. Basically using Simba files like C-headers is a no-no.. They cannot include each other even with the include_once directive. An if-def to guard the file could work (though I didn't check that yet..) Forward declarations of the functions needed work but that's beside the point. However, simply forgetting costs a lot of memory!
Result of the above is:

If I don't limit my Ram and put Simba on lowest priority, it eats nearly 3GB of ram -___-
Adding functions to the above files only make it worse lol..
So my suggestion is that we should be allowed to have files depend on eachother.
@Wizzup?; Just because ;)
Foo.Simba:
{$include_once Bar.Simba}
Bar.Simba:
{$include_once Foo.Simba}
Notice the cyclical dependencies.. Basically using Simba files like C-headers is a no-no.. They cannot include each other even with the include_once directive. An if-def to guard the file could work (though I didn't check that yet..) Forward declarations of the functions needed work but that's beside the point. However, simply forgetting costs a lot of memory!
Result of the above is:

If I don't limit my Ram and put Simba on lowest priority, it eats nearly 3GB of ram -___-
Adding functions to the above files only make it worse lol..
So my suggestion is that we should be allowed to have files depend on eachother.
@Wizzup?; Just because ;)