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

Everything Is References

Name: Anonymous 2010-08-20 16:29

Is there a language in which variables, function arguments, etc, are always references by default?

For example:

int x = 5;
int y = x;
y++;  // x and y are both 6


If you really did want a copy of something, you'd have to use a keyword:

int x = 5;
int y = copy(x);


And pass-by-value would also have to be done explicitly:

void func(int z)
{
   int w = copy(z); // now w is effectively "local"
}


It would force programmers to at least be aware of the fact that they're making a copy.

Name: Anonymous 2010-08-24 17:02

>>86
why don't you just play your MP3s from the command-line?
I do, effectively.  I just double-click them, which launches Winamp with the filename as a command-line parameter.

If you don't care what it looks like, why don't you just use Media Player Classic?
Not a bad idea I guess...  That's what I use for video, I guess I could just as easily use it for MP3, also, and have one less app installed.  Thanks.

I'll tell you why, it's because you do want that shit.
The fuck I do.

pretend like your enterprise coding job somehow differentiates you from the rest of us.
Not at all...  I'm far more like the average programmer than the morons who need to change the color of their buttons or need an animated GIF as their desktop wallpaper.  They are called script kiddies.

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