Author Topic: O.J. Simpson back in custody  (Read 5433 times)

0 Members and 6 Guests are viewing this topic.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: O.J. Simpson back in custody
« Reply #15 on: January 13, 2008, 09:44:05 am »
You can't make my value pointless, you never defined it!

int* pointless = 0;
pointless = 0x0000; // address, not value
int rabbit = *pointless;
That doesn't mean anything..

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: O.J. Simpson back in custody
« Reply #16 on: January 13, 2008, 11:01:43 am »
You can't make my value pointless, you never defined it!

int* pointless = 0;
pointless = 0x0000; // address, not value
int rabbit = *pointless;
That doesn't mean anything..
It means you're 0. In fact, you're 0x0000. That's what people who think they're cool say instead of 0.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: O.J. Simpson back in custody
« Reply #17 on: January 13, 2008, 11:41:51 am »
You can't make my value pointless, you never defined it!

int* pointless = 0;
pointless = 0x0000; // address, not value
int rabbit = *pointless;
That doesn't mean anything..
It means you're 0. In fact, you're 0x0000. That's what people who think they're cool say instead of 0.

He's a null address!
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline CrAz3D

  • Hero Member
  • *****
  • Posts: 10184
    • View Profile
Re: O.J. Simpson back in custody
« Reply #18 on: January 13, 2008, 02:21:54 pm »
First, you can't replace the word "is" with "=", that just doesn't make sense. You also can't use "==". "is" generally indicates a property, not equality.

In any case, about the whole topic, who cares? Some guy is being locked up for committing a crime. Big deal!
Oh yeah?  Well I'm going to say @ you that 4 right now using = is = to using is in Internet slang.     lol

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: O.J. Simpson back in custody
« Reply #19 on: January 15, 2008, 10:36:54 pm »
int* pointless = 0;
pointless = 0x0000; // address, not value
int rabbit = *pointless;

A) Something that is pointless doesn't point anywhere, unlike your pointer, which points to memory address zero.

B) You set pointless twice. It's double-pointed to zero.

C) Rabbit is still undefined, unless there's memory at address zero. A couple of years ago, I worked on an embedded system with a tiny heap and a bugged malloc()/free() system that could return zero without intending to indicate failure.
« Last Edit: January 15, 2008, 10:46:56 pm by Camel »

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!