VAR parameters are like pointers.
i'm thinking i'll just always send the pointer, and then if it's not a VAR, i'll copy the contents pointed to by that address to that parameter. that way i don't have to know at the time of the function call if a parameter is a VAR or not. but then again, back in the calling area, i should have the ProcSTO of the procedure/function being called.
that seems a little better. like all the stuff required for setting up the call of the function and getting it function the right arguments is done in the calling frame, and nothing is left over to the callee. that separates concerns better. i think i'll do that. then when i'm in the callee procedure, i know which params are supposed to be VARs and i will treat them accordingly. i will probably have to change the load(STO src, Register dest); function a little.
i have a habit of hitting (ctrl+s) now because i've been using eclipse and i want to avoid the annoying "HEY, YOU WANNA SAVE?!" dialog. it's not that bad in any particular instance. it just grinds on you after a while. ALL RIGHT.
i'm hungry. i want to go get food, but if i do, i won't be able to get back into this awesome coding spot. i'm in a conference room in Scripps.
earlier today while i was coding, some graduate students came in. they have a weekly gathering for eating cookies and drinking tea. right now as i type i'm looking out the window at a sunset. there are painted clouds in the sky with easy blue, pink, and gray. birds fly across but i can't watch as they pass the sun. the sky doesn't move much. i know it's changing because it's darker than it was five minutes ago, but i can't identify anything immediately. the ocean is moving a lot. waves crashing. surfers still out there. people have been surfing all day.
why do i get this? what have i done to deserve it? palm trees, evergreen, ocean, clouds, sky, sunset, i'm hungry and there's food nearby that i know i can get, birds, laptop, birds, quiet place to study. i'm coming here again. wireless, large table, many chairs.
and now the sun is further down. i must bring my webcam next time to share this with everyone. i'm watching the sunset through a tree. how cool is that!?
back to coding. i wish there was some way i could mark the changes i do right now and after the quarter is over have those changes linked to from here. that way i could come back later and see what kind of code i write, and i wouldn't have to worry about academic integrity.
No comments:
Post a Comment