 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Fri May 09, 2008 1:31 pm Post subject: |
|
|
| Jani wrote: | | Wiccaan wrote: | | As for returning EXIT_SUCCESS, no point, since it is also 0. | Well, it's almost always 0, but not on every single platform (If I recall correctly, Google for "VMS"). There goes your portability... |
Don't think worrying about portability to something that doesn't follow standards should be of your concern to worry about though. If the creators of the OS don't follow the language standards, no point for you to go out on an arm and leg to follow what they want done.
_________________
- Retired. |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat May 10, 2008 4:32 am Post subject: |
|
|
| Wiccaan wrote: | | Don't think worrying about portability to something that doesn't follow standards should be of your concern to worry about though. If the creators of the OS don't follow the language standards, no point for you to go out on an arm and leg to follow what they want done. | Hmm, I have never thought it that way. I thought that it's up to the OS writers what do they define..?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Sat May 10, 2008 1:16 pm Post subject: |
|
|
| Jani wrote: | | Wiccaan wrote: | | Don't think worrying about portability to something that doesn't follow standards should be of your concern to worry about though. If the creators of the OS don't follow the language standards, no point for you to go out on an arm and leg to follow what they want done. | Hmm, I have never thought it that way. I thought that it's up to the OS writers what do they define..? |
Well, I think of it like this..
If the language already exists, is created, copyright etc. etc. and has standards already created for compilers and such to follow, it would be the fault of the OS creators to change things that do not follow the standards that are already created for the language and are followed by all other compilers and such. If they are changing the way the language is designed to run, then they are not following the standards that are already established which isn't the fault of the programmer to have to go out of their way to create compatibility for a non-standard system.
I wouldn't go out of my way to code something for multiple platforms if they didn't follow the same standards because it just becomes more of a hassle on the programmers behalf.
Having to add a million ifdef blocks to check for certain things isn't worth it in my opinion. Having to do something like:
| Code: | #ifdef _VMS_DEFINE_THINGY_
return 1;
#else
return 0;
#endif |
This is just tiddious and not worth having to do across the entire project. I'm sure if they changed the basic default return value, there are plenty of other OS dependent things changed too.
If you are going to manipulate the language to do different things specifically for your OS, then why not just create a new language?
(Dunno if you would really say the language is copyright, but either that or patented... either way creative acts laws protect it and all that jazz..)
_________________
- Retired. |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat May 10, 2008 4:27 pm Post subject: |
|
|
| Wiccaan wrote: | If the language already exists, is created, copyright etc. etc. and has standards already created for compilers and such to follow...
...
If you are going to manipulate the language to do different things specifically for your OS, then why not just create a new language?
| Yeah yeah, I got your point. I know that a zero is a standard for success in C, but there isn't an OS standard which would define a process exit value as a zero if it was success. My point is that if an OS was never meant to be work with C/C++, but someone just adapted it to work with the OS.
Meh.. I don't know how to express myself :x And.. This discussion is going a bit, umm.. stupid I'd say (for my part at least).
| Wiccaan wrote: | Having to add a million ifdef blocks to check for certain things isn't worth it in my opinion. Having to do something like:
| Code: | #ifdef _VMS_DEFINE_THINGY_
return 1;
#else
return 0;
#endif |
|
| Code: | | return EXIT_SUCCESS; |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|