Nestharus: ok uhmm Nestharus: function ReturnThis takes nothing Nestharus: out static export Nestharus: integer i = out n Nestharus: end Nestharus: end Nestharus: uhm.. so another function is calling that over and over again Nestharus: that other function has a local variable n and it increments it in a loop Nestharus: then it prints i Nestharus: it's just.. whacked O_O jonas: where would I use it? Nestharus: it just shows what's possible : ) jonas: I'm not sure if "what is possible" should be defined in terms of what you can write down, rather than what problems you can solve (better). Varine: Holy shit it got late quick jonas: maybe you can find a practical example where it would be necessary to store something in a global variable rather than returning it, and show us how your new syntax improves life Varine: Because he wants to make it as complicated as fucking possible. Nestharus: oh er, that code example wasn't a global variable : ) Nestharus: that was a local variable that was made visible by whatever scope called that function : o tom_mai78101: You know, you're the first person ever to have a wall of text be placed in the Hall of Fame. jonas: well, there are two parts in your example; one importing the n and the other exporting the i jonas: whether or not they behave like global variables depends mostly on how you define the semantics of what you showed us jonas: e.g., what is the effect of writing to n from that function? jonas: Nevertheless you could get exactly the same behavior that you showed by using a global variable i and a parameter n with two lines less than what you have showed jonas: (and no additional syntax) jonas: (I'm using ZINC, in vJASS you might need the globals block and you would end up the same) jonas: of course you could also get it by using pointers, which means even more global variables jonas: so it seems to me the use case of your code, if any, is not explictly using global variables Accname: I guess the idea is to have a different concept. Its not quite the same as having a global variable since the i is only visible to those functions who explicitely want to use it. So perhaps you could have several variables with the same name which can all act similar to a global but only when needed. tom_mai78101: One of many great ingredients for making code horrors. Accname: I dont like it either. Varine: Sounds great until you call the wrong on. Varine: Also, Discussion: GPA 4.0 and it's meaning? Varine: You are becoming a Cheshire I think Accname: What is a GPA? tom_mai78101: Grade Point Average, mostly used with US academics. tom_mai78101: One more thing, Accname's Chinese Girl is a hit, and actually did went trending... Accname: what? tom_mai78101: Why would there be 2700 views count? tom_mai78101: You probably don't know, but you might be popular somewhere on the net. tom_mai78101: whoops, 2100 view count. tom_mai78101: Damn fonts. Varine: You should invite the Chinese girl to party in the shoutbox some time. Varine: I made a salad for my shift meal at work, but was too busy to eat. So I threw it into a box and have spilled it like four times. Varine: It smells funny Varine: Like, a I don't even know what Varine: Might be the chicken Varine: Tastes fine though Syndrome: So I come back a few months later... and Firecat's sounding more and more normal. Syndrome: Did someone break him? Syndrome: ...Nevermind. Accname: believe me, its not normal Accname: its still the same crazy Syndrome: Took me three posts to come to that conclusion. tom_mai78101: After obtaining the Seal of Approval for Accname's Chinese Girl, in just 1 day, it garnered 400 more views. tom_mai78101: Holy Cow. Varine: https://www.google.com/search?q=acc...7.3009j0j7&sourceid=chrome&es_sm=122&ie=UTF-8 Varine: I think it's getting out of hand tom_mai78101: Google ain't helping. Varine: Like holy fuck tom_mai78101: The fact that we can't track where the large amount of views are coming from is saddening. Varine: We don Varine: The links they click aren't referenced somewhere? tom_mai78101: Dunno. Can't do a traceback. tom_mai78101: Gotta ask Ghan or TH somehow. Varine: I still think Acc needs to invite the Chinese girl to a Shoutbox party tom_mai78101: An interview to stardom is nice. Varine: A picture would be nice. I bet he could do it. tom_mai78101: OP, please deliver. Varine: http://blog.angryasianman.com/2014/06/if-asians-said-stuff-white-people-say.html?m=1 Varine: I imagine she looks something like that one. vypur85: I agree with the picture thing. thewrongvine: I want to unmask the FireCat Syndrome: It's not happening. Syndrome: Stop trying to make it happen. Varine: I completed my first drawing! Varine: And it will happen Varine: It will turn out, Cheshire is the Chinese Girl! Varine: It explains so much tom_mai78101: Cheshire is Asian? Varine: Could be vypur85: Holy shit! Varine: As opposed to that evil shit? Varine: Anyone here watch Silicon Valley? Varine: Show is fucking funny Varine: Eggs + toast + chili + cheese Accname: We were hit by a thunderstorm last night, campus is looking like a battlefield. Accname: Trees uprooted, debris everywhere, windows broken. Trains not running either, took me 2 hours to get to university this morning Varine: We had a pretty badass storm a couple weeks ago Varine: But Varine: Back to the important topic: Where is our picture? Accname: How am I supposed to make a picture of her? I dont have a mobile phone.. tom_mai78101: You WHAT? No smartphone? (OH MY GODDDD....) tom_mai78101: [I]looks down in shame[/I] tom_mai78101: H-how could you... do this... ? Accname: I hate these things. I hate to get on the subway and see 20 people all staring down on their phones tom_mai78101: Peer pressure is hard to remove from society. Accname: what kind of peer pressure? Is somebody forcing them to watch their phones 24/7? tom_mai78101: No, you're right. Smartphones can be hated. Varine: Go to the store and buy a fucking camera, be like "Asian bitch, let's take a picture together!" Upload, post, done. Varine: And also, what would you prefer they be doing? Accname: I am not going to buy a camera and photograph random people. Varine: Not random people Varine: A specific person Accname: somehow makes it worse Varine: Don't care, picture or she isn't real Accname: I wonder if she will talk to me again this day. We have a lecture starting in about 30 minutes. Last tuesday she sat next to me and started talking. Accname: I hope she doesnt Varine: Tell her to come to the Shoutbox. Accname: Wasnt here today. Accname: Phew tom_mai78101: Can you do a voice recording of her? Varine: A voice recording is harder to get than a picture is. Accname: You realize that I am getting stalked and I >dont< want to turn it the other way? Varine: Yeah... Varine: You are male right? Varine: Because I'm pretty sure you can only be stalked if you're a girl. jonas: sureness does not imply correctness. vypur85: Dude. Any phones now come with camera. Not necessarily a smartphone... vypur85: Just get it done with man... vypur85: Be a man. Do the right thing. Get her picture. We are eager to know here. Accname: I didnt say I dont have a smart phone. I am saying I dont have ANY mobile phone. Varine: And we're saying go fucking get one and take a picture Varine: Finally deleted everyone on Facebook I don't know or don't like Varine: Took half an hour, was extremely difficult. Varine: Like, it's would have been easier for me to tell them personally we aren't friends. tom_mai78101: If only there's a better way of deleting old friends that are no longer friends. thewrongvine: just get a big DSLR thewrongvine: and take a picture with that thewrongvine: it'll be less conspicuous