These are chat archives for CSE450-MSU/Raven

9th
Nov 2014
chelsea
@seadb
Nov 09 2014 00:01 UTC
oops
I fixed it !
Josh Curl
@joshwget
Nov 09 2014 00:01 UTC
Awesome!
Project should be done then
chelsea
@seadb
Nov 09 2014 00:01 UTC
The EC is too?
i didnt do the resize part yet
I used this code
Josh Curl
@joshwget
Nov 09 2014 00:01 UTC
Well not that yet
chelsea
@seadb
Nov 09 2014 00:04 UTC
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 UTC
I think he just means you can't call resize(n) where n < 0
chelsea
@seadb
Nov 09 2014 00:28 UTC
Oh
okay
thats easy then
chelsea
@seadb
Nov 09 2014 01:02 UTC
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 UTC
Not sure, I haven't been to class in a while
chelsea
@seadb
Nov 09 2014 01:10 UTC
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 UTC
Shit
Didn't realize it was so soon
chelsea
@seadb
Nov 09 2014 01:11 UTC
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 UTC
I don't think it'll be too hard
chelsea
@seadb
Nov 09 2014 01:14 UTC
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 UTC
Yeah I guess they can be tricky. But hopefully the test will be more straightforward.
chelsea
@seadb
Nov 09 2014 01:47 UTC
Do you know why some of the line numbers in the error messages are wrong?
Josh Curl
@joshwget
Nov 09 2014 02:03 UTC
Not really, I think that's mostly from the Project 5 checkpoint
chelsea
@seadb
Nov 09 2014 02:07 UTC
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 UTC
To be useful, yeah. I don't think it's technically a requirement though.
chelsea
@seadb
Nov 09 2014 02:14 UTC
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 UTC
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 UTC
thats what i mean
Josh Curl
@joshwget
Nov 09 2014 02:16 UTC
Oh sorry, then yes
chelsea
@seadb
Nov 09 2014 02:16 UTC
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 UTC
Yeah they definitely are sometimes
chelsea
@seadb
Nov 09 2014 02:46 UTC
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 UTC
What is that?
chelsea
@seadb
Nov 09 2014 02:48 UTC
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 UTC
Ah okay
chelsea
@seadb
Nov 09 2014 03:02 UTC
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 UTC
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 UTC
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 UTC
Okay. Thanks!
chelsea
@seadb
Nov 09 2014 17:04 UTC

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.