Poll
Question: How should ENIGMA handle struct{} ambiguity?
User's responsibility
Dissallow immediate instantiation
Use cpp %{ %}
Hurr
Treat a newline following } as a semicolon

Pages: « 1 2
  Print  
Author Topic: Quick Poll  (Read 3472 times)
Offline (Male) retep998
Reply #15 Posted on: March 12, 2010, 09:24:33 AM

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
I'm changing my vote to...
"Treat a newline following } as a semicolon"
I feel this would be the best choice.
SO EITHER GO WITH THIS CHOICE OR DIE!
Logged
Offline (Male) Josh @ Dreamland
Reply #16 Posted on: March 12, 2010, 09:30:52 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2956

View Profile Email
Serp--
They'll be stored in the file format for when ENIGMA queries for them.

retep--
I'm going to have a check box / radio button to decide whether to treat } as }; or not. It'll be defaulted to };. This way, we don't have users pissed off about the only feature of EDL that depends on newlines.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) retep998
Reply #17 Posted on: March 12, 2010, 09:54:14 AM

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
retep--
I'm going to have a check box / radio button to decide whether to treat } as }; or not. It'll be defaulted to };. This way, we don't have users pissed off about the only feature of EDL that depends on newlines.
That sounds good then.
Just make sure it's for the gmk, not for the IDE. If I get a gmk from a person with a different setting, I WANT ENIGMA TO DAMN COMPILE THAT SHIT WITHOUT ME HAVING TO CHANGE THE CONFIGURATION.

(Hmmmm... I seem to be using a lot of CAPS today)
Logged
Offline (Male) RetroX
Reply #18 Posted on: March 14, 2010, 02:42:10 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
GM treats var x,y as bad syntax without a semicolon; the same should apply to struct and class.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Josh @ Dreamland
Reply #19 Posted on: March 14, 2010, 03:39:08 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2956

View Profile Email
Like I said, C++ people make this particular mistake a lot. It happens, and it could likely piss people off.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) RetroX
Reply #20 Posted on: March 14, 2010, 04:44:34 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
I never make semicolon mistakes on anything but struct or class.  :/

The GCC gives good enough syntax error reporting to not have to worry about it.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Pages: « 1 2
  Print