They called me crazy!

Started by
8 comments, last by dancingmad 8 years, 2 months ago

tW41PnI.png

Ladies and gentle men, I bring to you, the Binteger (bool + int).

Mobile Developer at PawPrint Games ltd.

(Not "mobile" as in I move around a lot, but as in phones, mobile phone developer)

(Although I am mobile. no, not as in a babies mobile, I move from place to place)

(Not "place" as in fish, but location.)

Advertisement
Not impressed until you can represent them both accurately in 32 bits.


</troll>

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

But does it support FILE_NOT_FOUND?
I'm interpreting "B integer" more as an imperative. Like, be the integer. Let the scalar wholeness into your soul, man.

Sean Middleditch – Game Systems Engineer – Join my team!

This reminds me of S_FAIL for some reason. You may have succeeded, but in the end, its still a failure.

Actual (sanitized) quote from actual game source I've worked on:

#define NET_ERR_UNEXPECTED_SUCCESS                      DEF_ERROR(NET_ERR_BASE + 3)

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

Actual (sanitized) quote from actual game source I've worked on:


#define NET_ERR_UNEXPECTED_SUCCESS                      DEF_ERROR(NET_ERR_BASE + 3)

Unexpected success, aye? To me, that sounds like an issue that only Guild Wars 2 would encounter smile.png

"The code you write when you learn a new language is shit.
You either already know that and you are wise, or you don’t realize it for many years and you are an idiot. Either way, your learning code is objectively shit." - L. Spiro

"This is called programming. The art of typing shit into an editor/IDE is not programming, it's basically data entry. The part that makes a programmer a programmer is their problem solving skills." - Serapth

"The 'friend' relationship in c++ is the tightest coupling you can give two objects. Friends can reach out and touch your privates." - frob

But does it support FILE_NOT_FOUND?

I believe boosts tribool still does this wrong as well, by not defining the third states value.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

washu wrote me this :)


struct beufint_t {
public:
    beufint_t () : t(et::n), u(0) {}
    beufint_t (bool b) : t(et::b), b(b) {}
    beufint_t (float f) : t(et::f), f(f) {}
    beufint_t (int i) : t(et::i), i(i) {}
    beufint_t (unsigned u) : t(et::u), u(u) {}
    
    operator bool () const { return t == et::b ? b : false; }
    operator int () const { return t == et::i ? i : 0; }
    operator float () const { return t == et::f ? f : 0; }
    operator unsigned () const { return t == et::u ? u : 0; }
    operator void const * () const { return t != et::n ? this : 0; }

    bool operator () (bool) const { return t == et::b; }
    bool operator () (int) const { return t == et::i; }
    bool operator () (float) const { return t == et::f; }
    bool operator () (unsigned) const { return t == et::u; }
private:
    enum class et {
        b,
        f,
        i,
        u,
        n
    };
    
    union {
        bool b;
        float f;
        int i;
        unsigned u;
    };
    
    et t;
};

Mobile Developer at PawPrint Games ltd.

(Not "mobile" as in I move around a lot, but as in phones, mobile phone developer)

(Although I am mobile. no, not as in a babies mobile, I move from place to place)

(Not "place" as in fish, but location.)

But does it support FILE_NOT_FOUND?

iunderstoodthatreference.jpg -_-

This topic is closed to new replies.

Advertisement