Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

kelton5020

@kelton5020
About
Posts
7
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Perhaps I should write an article
    K kelton5020

    It was just an example.

    The Lounge csharp c++ database design regex

  • Perhaps I should write an article
    K kelton5020

    Yeah you could create pointers for doing nulls, but it would probubly make more sense to have some sort of default convention.

    int MyInt = 0;
    if(MyInt == 0)//equivalent to null

    or if you need to use 0

    int MyInt = -1;
    if(MyInt == -1)//null

    or if you need the entire integer

    intMyInt = 0;
    bool isIntNull = true;
    //do work here
    if(isIntNull)//int null, reguardless of the ints value

    OR(it's pretty damn basic, and I just threw it together in notepad so it may not compile, but the idea would work)

    template
    class Nullable{
    bool isNull;
    theType Value;
    public:
    Nullable(){
    isNull = true;
    }
    bool IsNull(){
    return isNull;
    }
    theType GetValue(){
    return Value;
    }
    void SetValue(theType val){
    isNull = false;
    Value = val;
    }
    };

    The Lounge csharp c++ database design regex

  • Perhaps I should write an article
    K kelton5020

    Yeah, but a pointer isn't any specific type, it's a reference to a location in memory.

    The Lounge csharp c++ database design regex

  • Perhaps I should write an article
    K kelton5020

    Ah ok. In natural C++ though, ints,bytes,chars,and bools aren't nullable as far as I've ever known.

    The Lounge csharp c++ database design regex

  • Perhaps I should write an article
    K kelton5020

    If you're rewriting in c++ with the CLR you have Nullable types in which any object can be null(This is how most ORMs deal with ints and bools etc).

    The Lounge csharp c++ database design regex

  • Rant - I hate GIT
    K kelton5020

    Well if you really have, you wouldn't be complaining about not knowing/understanding the terminology :p

    The Lounge csharp php com collaboration tutorial

  • Rant - I hate GIT
    K kelton5020

    This just shows that your problem isn't really with git, it's with you lack of knowledge of it. I'd imagine you're kind of a green horn to the technology, and you haven't quite figured out how all of these things actually benefit you, if you take a moment to learn them.

    The Lounge csharp php com collaboration tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups