Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SICP driven MIRC SCRIPT coding

Name: Anonymous 2009-07-15 0:07

So I learned in SICP

You can add another layer of complexity to solve a problem.

So I had the problem of making a variable overwrite function for text files in mirc script.  I used my massive knowledge of SICP to come up with an easy and elegant solution

if ($1 == 0 ) {
/write -l0 C:\Ladder.txt $2
}
if ($1 == 1 ) {
/write -l1 C:\Ladder.txt $2
}
if ($1 == 2 ) {
/write -l2 C:\Ladder.txt $2
}
if ($1 == 3 ) {
/write -l3 C:\Ladder.txt $2
}
if ($1 == 4 ) {
/write -l4 C:\Ladder.txt $2
}
if ($1 == 5 ) {
/write -l5 C:\Ladder.txt $2
}
if ($1 == 6 ) {
/write -l6 C:\Ladder.txt $2
}
if ($1 == 7 ) {
/write -l7 C:\Ladder.txt $2
}
if ($1 == 8 ) {
/write -l8 C:\Ladder.txt $2
}
if ($1 == 9 ) {
/write -l9 C:\Ladder.txt $2
}
if ($1 == 10 ) {
/write -l10 C:\Ladder.txt $2
}
if ($1 == 11 ) {
/write -l11 C:\Ladder.txt $2
}
if ($1 == 12 ) {
/write -l12 C:\Ladder.txt $2
}

......

if ($1 == 1000 ) {
/write -l1000 C:\Ladder.txt $2
}

Name: Anonymous 2009-07-15 5:27

>>16
Someday they might exist and you could protect your valuable brains from this mythical villain(which should not be named) automatically. Your life would also improve dramatically with all the bad stuff safely remove from view.
 Well, until you miss something life-threatening, but thats not a big deal. Life quality is more important.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List