These are chat archives for CSE450-MSU/Raven

9th
Nov 2014
chelsea
@seadb
Nov 09 2014 00:01
oops
I fixed it !
Josh Curl
@joshwget
Nov 09 2014 00:01
Awesome!
Project should be done then
chelsea
@seadb
Nov 09 2014 00:01
The EC is too?
i didnt do the resize part yet
I used this code
Josh Curl
@joshwget
Nov 09 2014 00:01
Well not that yet
chelsea
@seadb
Nov 09 2014 00:04
i think i can figure that out pretty easily since i already have a size variable in the symbol_table
I don't understand what he means by negative memory allocation?
Does that mean the array can never be shrunk?
it can only be made bigger?
Josh Curl
@joshwget
Nov 09 2014 00:14
I think he just means you can't call resize(n) where n < 0
chelsea
@seadb
Nov 09 2014 00:28
Oh
okay
thats easy then
chelsea
@seadb
Nov 09 2014 01:02
When is the exam again?
i think im done with the E.C. but i need to test it
Josh Curl
@joshwget
Nov 09 2014 01:09
Not sure, I haven't been to class in a while
chelsea
@seadb
Nov 09 2014 01:10
Oh shit
its on Tuesday
the review was last Thursday
i had a feeling in Thursday that i needed to go to class
but i really didnt want to go
Josh Curl
@joshwget
Nov 09 2014 01:11
Shit
Didn't realize it was so soon
chelsea
@seadb
Nov 09 2014 01:11
because its usually useless
Yeah...Guess i will spend tommorow studying
there's a sample exam on the course site
along with the quizzes
Josh Curl
@joshwget
Nov 09 2014 01:13
I don't think it'll be too hard
chelsea
@seadb
Nov 09 2014 01:14
really? I feel like he always puts trick questions on the quizzes
I still usually get at least a 3.0 on them though
Josh Curl
@joshwget
Nov 09 2014 01:16
Yeah I guess they can be tricky. But hopefully the test will be more straightforward.
chelsea
@seadb
Nov 09 2014 01:47
Do you know why some of the line numbers in the error messages are wrong?
Josh Curl
@joshwget
Nov 09 2014 02:03
Not really, I think that's mostly from the Project 5 checkpoint
chelsea
@seadb
Nov 09 2014 02:07
So to declare an int array
it has to always be declared along with a resize right?
Josh Curl
@joshwget
Nov 09 2014 02:10
To be useful, yeah. I don't think it's technically a requirement though.
chelsea
@seadb
Nov 09 2014 02:14
but if the array hasnt been initialized it will throw an error now
i mean if the array hasnt been initialized to a size
because of the extra credit
Josh Curl
@joshwget
Nov 09 2014 02:15
Wouldn't it just throw an out of bounds error? The default size is zero, so using it before it's initialized should throw an error anyways.
chelsea
@seadb
Nov 09 2014 02:15
thats what i mean
Josh Curl
@joshwget
Nov 09 2014 02:16
Oh sorry, then yes
chelsea
@seadb
Nov 09 2014 02:16
haha ok XD
sometimes the specifications for the actual tubular code seem unclear to me
thx for clarifying
Josh Curl
@joshwget
Nov 09 2014 02:18
Yeah they definitely are sometimes
chelsea
@seadb
Nov 09 2014 02:46
okay i think the extra credit is close
i just cant get the recursive indexing to work
Josh Curl
@joshwget
Nov 09 2014 02:47
What is that?
chelsea
@seadb
Nov 09 2014 02:48
array(int) num;
num.resize(1);
num[0] = 5;
array(char) str = "hello";
str[num[0]];
str[num[0]] should trigger an error
out of bounds
if i print it out inside ast.cc it prints "h"
Josh Curl
@joshwget
Nov 09 2014 02:49
Ah okay
chelsea
@seadb
Nov 09 2014 03:02
yeah i don't know why its not working
everything else works. hopefully they wont test for that part of the E.C. i guess
Josh Curl
@joshwget
Nov 09 2014 03:06
Even if they do they won't take off that much
Think it's good enough to turn in then?
chelsea
@seadb
Nov 09 2014 03:18
yeah
TravisCI says we fail good.999.tube
but when i run the tests we don't fail it at all
i think its due to a permissions error
Josh Curl
@joshwget
Nov 09 2014 03:26
Okay. Thanks!
chelsea
@seadb
Nov 09 2014 17:04

Hey if anyone wants to work on the Sample Exam, I'm working on it here.
https://www.writelatex.com/1771855txwhck

its typeset in LaTeX, which is pretty easy to pick up on.