|
0 registered members (),
9,630
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: 0 == NULL ???
[Re: MichaelGale]
#278289
07/12/09 23:36
07/12/09 23:36
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I think we are more (IMHO) going to be C++ compatible. Straight C is too 'outdated'. Im not saying its obsolete, it still has priide of place as a REALLY low level language, but its not that often you need to go that low any more. Escpecially not with a propriety gaming engine, for "non-professional" programmers... It IS called LITE-c after all.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: 0 == NULL ???
[Re: pegamode]
#278332
07/13/09 07:34
07/13/09 07:34
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
You cant, cause you are passing it as a value, not a pointer. If you passed it as a pointer, your problem would not occur.
And NULl should not be handled the way it is in java, simply because this it lite-C, not LITE-JAVA. This is the way its handled in C++ so thats why its used here.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: 0 == NULL ???
[Re: EvilSOB]
#278338
07/13/09 08:12
07/13/09 08:12
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
Im not saying its obsolete, it still has priide of place as a REALLY low level language, but its not that often you need to go that low any more. I highly disagree. In my job, straight C is used, and there are no plans to switch to C++ or something else anytime soon. The reason is memory consumption and runtime.
|
|
|
Re: 0 == NULL ???
[Re: FBL]
#278342
07/13/09 08:42
07/13/09 08:42
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I wont disagree Firoball, thats just my opinion based on my experiences over the last 10 years (on and off) as an "application" level programmer. I havent come across C as often as C++ or 'higher' languages. But maybe thats cause Im not close to prefessional level with straight C, and so have overlooked a lot of it, as I havent been looking in that direction.
So what do you programs do roughly speaking (if I may ask)? PC operating system, hardware control, or all the way down at lowly end-user "applications" stuff?
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: 0 == NULL ???
[Re: EvilSOB]
#278369
07/13/09 10:35
07/13/09 10:35
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
So what do you programs do roughly speaking (if I may ask)? PC operating system, hardware control, or all the way down at lowly end-user "applications" stuff?
Embedded systems.
|
|
|
Re: 0 == NULL ???
[Re: FBL]
#278378
07/13/09 11:53
07/13/09 11:53
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Yup, makes sense. VERY tight code and memory requirements. I prefer risc for that, but mine are only baby hardware, micro-controllers... Thanks Firoball. Sorry if I offended.
Sorry all for drifting off-topic...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: 0 == NULL ???
[Re: EvilSOB]
#278401
07/13/09 14:21
07/13/09 14:21
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
|
|
|
|