johnnydean1 wrote:
May I ask NXIII how you changed MISC to colour?
Why do you care? >.>
Misc was useless.
@sep
whileTrue: [
t2 _ t2 - 1.
t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.
]
Last edited by nXIII (2010-04-11 12:47:11)
Offline
sparks wrote:
Sperry wrote:
@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.Haha, Wirklich? Meine Lieblingsfarbe WAR blau, aber jetzt ist es violet!... Das ist halt Deutsch, ich mach das in der Abitur...
All I can say:
Meine Lieblingsfarbe WAR grun.
I only learn German as a 3rd Language.
EDIT:
@nXIII:
Wheres ScratchSkin located?
Last edited by Sperry (2010-04-11 12:49:00)
Offline
YUSSS! THANK YOU NXIII! YOU ARE DAH PROGRAMMAH!
Woot!
Last edited by SeptimusHeap (2010-04-11 12:51:04)
Offline
SeptimusHeap wrote:
How do you put anything after a WhileTrue?
listaverage: t1 | t2 t3 t4 t5 t6 | t2 _ t1 lineCount. t6 _ t1 lineCount. t3 _ 0. t4 _ 1. [t2 >= 0] whileTrue: [t2 _ t2 - 1. t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1] t5 = t3 / <- argument of whileTrue: must be a block or variable ->t6. ^t5
Can anyone help fix hat error? They would be DA PROGRAMMAH!
Offline
I dont like the colour section... it looks horrible and kinda pointless...
Offline
SeptimusHeap wrote:
SeptimusHeap wrote:
How do you put anything after a WhileTrue?
Code:
listaverage: t1 | t2 t3 t4 t5 t6 | t2 _ t1 lineCount. t6 _ t1 lineCount. t3 _ 0. t4 _ 1. [t2 >= 0] whileTrue: [t2 _ t2 - 1. t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1] t5 = t3 / <- argument of whileTrue: must be a block or variable ->t6. ^t5Can anyone help fix hat error? They would be DA PROGRAMMAH!
t5 = t3 .....
no, no, no:
t5 _ t3 .....
Offline
No! Eet steel doz eet!
listaverage: t1 | t2 t3 t4 t5 t6 | t2 _ t1 lineCount. t6 _ t1 lineCount. t3 _ 0. t4 _ 1. [t2 >= 0] whileTrue: [t2 _ t2 - 1. t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1] <- argument of whileTrue: must be a block or variable ->t5 _ t3 / t6. ^t5
Offline
SeptimusHeap wrote:
No! Eet steel doz eet!
Code:
listaverage: t1 | t2 t3 t4 t5 t6 | t2 _ t1 lineCount. t6 _ t1 lineCount. t3 _ 0. t4 _ 1. [t2 >= 0] whileTrue: [t2 _ t2 - 1. t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1] <- argument of whileTrue: must be a block or variable ->t5 _ t3 / t6. ^t5
It looks like you havent ended the whileTrue: <- argument of whileTrue: must be a block or variable ->
Offline
NOEZ I GETZ ERROR!
BlockSpec:
('average of numbers in %L' #r #listaverage: 'list')
listaverage:
listaverage: t1 | t2 t3 t4 t5 t6 | t2 _ t1 lineCount. t6 _ t1 lineCount. t3 _ 0. t4 _ 1. [t2 >= 0] whileTrue: [t2 _ t2 - 1. t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1. t4 _ t4 + 1]. t5 _ t3 / t6. ^ t5
Offline
Try this:
BlockSpec:
('average of numbers in %L' #r #listAverage: 'list')
listaverage:
listAverage: t1 | t2 t3 t4 t5 t6 | t2 _ t1 lineCount. t6 _ t1 lineCount. t3 _ 0. t4 _ 1. [t2 >= 0] whileTrue: [t2 _ t2 - 1. t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1. t4 _ t4 + 1]. t5 _ t3 / t6. ^ t5
Offline
Ooh! I did inspect, and it does a 'Nothing more expected ->' on the listaverage line.
Offline
Try this:
BlockSpec:
('average of numbers in %L' #r #listAverage 'list')
listaverage:
listAverage | t1 t2 t3 t4 t5 t6 | t2 _ t1 lineCount. t6 _ t1 lineCount. t3 _ 0. t4 _ 1. [t2 >= 0] whileTrue: [t2 _ t2 - 1. t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1. t4 _ t4 + 1]. t5 _ t3 / t6. ^ t5
You had no value to pass through.
Offline
Sperry wrote:
sparks wrote:
Sperry wrote:
@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.Haha, Wirklich? Meine Lieblingsfarbe WAR blau, aber jetzt ist es violet!... Das ist halt Deutsch, ich mach das in der Abitur...
All I can say:
Meine Lieblingsfarbe WAR grun.
I only learn German as a 3rd Language.
EDIT:
@nXIII:
Wheres ScratchSkin located?
no, no, I'm sorry, I cap's "war" to emphasise it, not correct you. "Meine Lieblingsfarbe was correct. To translate what I wrote after, "Haha, really? my fave color WAS blue, but now it's purple!... this is German which I study at A level.
Offline
sparks wrote:
Sperry wrote:
sparks wrote:
Haha, Wirklich? Meine Lieblingsfarbe WAR blau, aber jetzt ist es violet!... Das ist halt Deutsch, ich mach das in der Abitur...
All I can say:
Meine Lieblingsfarbe WAR grun.
I only learn German as a 3rd Language.
EDIT:
@nXIII:
Wheres ScratchSkin located?no, no, I'm sorry, I cap's "war" to emphasise it, not correct you. "Meine Lieblingsfarbe was correct. To translate what I wrote after, "Haha, really? my fave color WAS blue, but now it's purple!... this is German which I study at A level.
I know I caps it! I felt like doing it back! Also note the grun!
EDIT: Oh no!!!!!! No purple writing from sparks!!!!!!!!!!!!
Last edited by Sperry (2010-04-11 13:37:41)
Offline