|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #16 Posted on: July 28, 2009, 02:12:24 AM |
|
|
|
That's essentially the equivalent of doing:
int x; x.int=0;
|
|
|
|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #18 Posted on: July 29, 2009, 03:17:06 AM |
|
|
|
I dunno; ask Josh. He's seen things way crazier than I have or ever will.
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #19 Posted on: July 29, 2009, 05:11:39 AM |
|
|
|
It's worse than int x; x.whatever;
In that code, you at least have four bytes to work with. This offers nothing; the structure has no member by that name, and it certainly can't be treated as an integer, so ENIGMA really has nothing to do with that but error.
|
|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #20 Posted on: July 29, 2009, 01:11:41 PM |
|
|
I still don't get why someone would say int x; x.int=0;
|
|
|
|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #22 Posted on: July 30, 2009, 03:00:33 AM |
|
|
Quote from: Rusky on July 29, 2009, 04:21:19 PM Because they're stupid. You can't just ignore possible stuff just because nobody would do it, you have to give an error.
Even GM doesn't do that completely, and they'll have at least 9000 more dumb users than we ever will.
|
|
|
|
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #25 Posted on: July 30, 2009, 04:07:13 PM |
|
|
|
And var xy; xy.a=0; will error "Undefined variable xy", even though you declared it. var x; errors that you can't redefine a builtin variable. Which is dumb. I may have to make EINGMA error if you say local int x; though.
|
|
|
|
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #28 Posted on: July 31, 2009, 01:52:36 PM |
|
|
|
Rusky- Yes...
a2h- 1/x?
|
|
|
|
|
|