
-----------------------------------
Krocker
Wed Dec 15, 2010 9:35 am

Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
Is it possible to have a loop in a loop in a loop? Cuz i have a program where i need the loops. is it possible?

-----------------------------------
Insectoid
Wed Dec 15, 2010 10:13 am

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
Why don't you try it?

-----------------------------------
Krocker
Wed Dec 15, 2010 5:41 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
well, that an answer.

-----------------------------------
Insectoid
Wed Dec 15, 2010 6:28 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
Did you try it?

-----------------------------------
TokenHerbz
Wed Dec 15, 2010 7:57 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------

var c : int := 0
loop
    put "THIS is loop one"
    loop
        put "This Is Loop Two"
        loop
            put "this is loop THREE"
            c += 1
            exit when c mod 2 = 0
        end loop
        exit
    end loop
    exit when c >= 10
end loop
put "What a mess of loooops"


-----------------------------------
Insectoid
Wed Dec 15, 2010 8:08 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
Damnit Token! Stop rewarding laziness!

Although in this case laziness is more work than initiativity.

-----------------------------------
Krocker
Thu Dec 16, 2010 9:44 am

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
im not lazy Insetoid, i just cant check because my program uses parallel ports, which my computer does not have. so i cannot run the program. My school have the old computers, so ya. SO im not LAZY.

-----------------------------------
Insectoid
Thu Dec 16, 2010 9:47 am

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
You could make a new program. It's not that hard.

-----------------------------------
Krocker
Thu Dec 16, 2010 11:17 am

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
a new 300k line program. ya thanx, but no thx, ill stick with posting questions. lol

-----------------------------------
TokenHerbz
Thu Dec 16, 2010 11:35 am

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
it doesn't take 300 lines of code to test small programming features...  or to test most things to see if it works how it should.

Most the time i prefer to test ideas outside my main program before implementing it into my source.  I find things are less problematic and i learn a lot more.

[code]
loop
    put "loop 1"
    loop
          put "loop 2"
          exit
    end loop
    Input.Pause
end loop
[/code]

this 8 line small code tests a loop inside a loop. This Doesn't require a massive 300 lines of code.

-----------------------------------
Krocker
Thu Dec 16, 2010 11:52 am

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
lol, k, im new to the whole thing, so ya, ill try that next time. thx anyways

-----------------------------------
DemonWasp
Thu Dec 16, 2010 12:10 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
Wait. Did you just suggest that you have a program with 300K lines of code? Does Turing even start up with a file that large?

-----------------------------------
Insectoid
Thu Dec 16, 2010 12:15 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
That's not a program. That's an executable novel.

-----------------------------------
DemonWasp
Thu Dec 16, 2010 12:17 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
At 300,000 lines, assuming a generous 100 lines per page, that's still 3000 pages. That's not a novel, that's a whole series...assuming you're not Robert Jordan, in which case that's a book and a half.

-----------------------------------
Insectoid
Thu Dec 16, 2010 12:24 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
I would love to see someone write 300,000 lines of code just to test nested loops.

Brb, writing a program to write a 150,000 loop program to see what happens.

-----------------------------------
DemonWasp
Thu Dec 16, 2010 1:01 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
I'm betting on either an allocation exception when Turing tries to run the file, or a stack overflow issue if it manages to run it.

-----------------------------------
Insectoid
Thu Dec 16, 2010 1:41 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
Implementation restriction: Block nesting is too deep.

Will not run.

-----------------------------------
Krocker
Thu Dec 16, 2010 4:30 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
lol

-----------------------------------
TerranceN
Thu Dec 16, 2010 4:46 pm

Re: Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
http://images1.memegenerator.net/ImageMacro/3972402/WE-need-to-go-deeper.jpg

-----------------------------------
TokenHerbz
Thu Dec 16, 2010 4:54 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
i wonder if other programming languages would suffer the same fate as turing?

-----------------------------------
Insectoid
Thu Dec 16, 2010 5:16 pm

Re: Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
http://images1.memegenerator.net/ImageMacro/3972402/WE-need-to-go-deeper.jpg

Segmentation Fault: Dream Overflow


This is starting to look like /b/. I'll stop now.

-----------------------------------
Krocker
Thu Dec 16, 2010 8:04 pm

RE:Loop in a Loop!! Urgent!!!!!!!!!
-----------------------------------
what do you mean by suffering?
