Issue information

Issue ID
#5551
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Apr 3, 2012 23:35
Last Post
Hercules Elf Bot
Apr 24, 2012 8:16
Confirmation
Yes (0)
No (1)

Hercules Elf Bot - Apr 3, 2012 23:35

Originally posted by [b]MusiDex[/b]
This command was a great idea, but I think it needs a little bit more optimisation:

When you work with functions like this:

[CODE]
freeloop(1);
while(1) {
function1();
}
freeloop(0);

//=====

function function1 {
//many stuff
freeloop(1);
while(1) {
//many stuff
}
freeloop(0);
//many stuff
}

[/CODE]

The freeloop will be deactivated leaving the while-loop in the function1,
causing an infinity-loop error in my main-code, when the amount of "gotos" was reached in the "many stuff" regions.

This means using the function1 is only possible like this:
[CODE]
freeloop(1);
function1();
freeloop(0);
[/CODE]

because using the freeloop inside the function will head to the infinity loop error.

Greetz, MD

Hercules Elf Bot - Apr 11, 2012 4:45

Originally posted by [b]Ind[/b]
it is not meant to work like that (if it were a reference counter it'd work like that, but it is not).

Hercules Elf Bot - Apr 14, 2012 19:05

Originally posted by [b]MusiDex[/b]
Found the suggestions topic, posted it there, sorry. (should be pinned... :P)