Wednesday, April 11, 2007

Some Code

From selfrighteous.h:

namespace Sin
{
static const unsigned Stalin = 4_000_000_000;
static const unsigned Hitler = 3_500_000_000;
static const unsigned Mother_Theresa = 4;
static const unsigned Jesus = 0;
static const unsigned self = 100;
static const unsigned murderer = 1000;
};

void judge(allPeople)
{
threshold = 1000;
// maybe God grades on a curve?
//threshold = allPeople.getAverageSin()
foreach person in allPeople
{
if( person->sin < threshold )
heaven_.push_back();
else
hell_.push_back();
}
};


Unfortunately the actual code looks more like:


void God::judge(allPeople)
{
foreach person in allPeople
if( person->isSaved() )
heaven_.push_back();
else
hell_.push_back();
}

Person::Person(void)
{
saved_ = true; // 2 Samuel 12:23
heart_ = new Heart(Stone);
}

void Person::doSin(void)
{
if( heart_->canConvict() )
{
HolySpirit->grieve();
return;
}

saved_ = false;
}

void Person::repentAndTrust(Jesus*)
{
saved_ = true;

delete heart_; // old is passed away
heart_ = new Heart(HolySpirit);
}

No comments: