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

this is why bugs exist

Name: Anonymous 2006-09-11 16:24

The reason why bugs exist in software amounts to one word (well technically two):

BRAINFARTS

look at this... I didnt catch this for a whole hour in my code:

Vector3D Vector3D::add(Vector3D vect)
{
    Vector3D v;
    v.x = x * vect.x;
    v.y = y * vect.y;
    v.z = z * vect.z;

    return v;
}


;_;

I'm not even drunk or high.  Why the shit did I do this?  i must be stupid

sigh

Name: Anonymous 2006-09-12 14:54

>>20
They're basically getters and setters that work with equalities.  So instead of

object.setpoop(5)
or
x = object.getpoop()

A propery, like in C#, would be:
object.Poop = 5
or
x = object.Poop

And properties, even though they're accessed like equalities, are essentially functions just like getpoop() and setpoop() -- they're just syntactically nicer.

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