Click here to Skip to main content
15,900,110 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: goto statement Pin
CPallini10-Nov-13 6:13
mveCPallini10-Nov-13 6:13 
GeneralRe: goto statement Pin
  Forogar  10-Nov-13 6:23
professional  Forogar  10-Nov-13 6:23 
GeneralRe: goto statement Pin
CPallini10-Nov-13 6:30
mveCPallini10-Nov-13 6:30 
GeneralRe: goto statement Pin
Bill_Hallahan10-Nov-13 6:31
Bill_Hallahan10-Nov-13 6:31 
GeneralRe: goto statement Pin
  Forogar  10-Nov-13 6:51
professional  Forogar  10-Nov-13 6:51 
GeneralRe: goto statement Pin
Bill_Hallahan10-Nov-13 7:05
Bill_Hallahan10-Nov-13 7:05 
GeneralRe: goto statement Pin
Rob Grainger10-Nov-13 22:50
Rob Grainger10-Nov-13 22:50 
GeneralRe: goto statement Pin
Bill_Hallahan11-Nov-13 5:05
Bill_Hallahan11-Nov-13 5:05 
This is C# code, (although I have a SparseArray template for C++ article on codeproject). This code does look just like C++ though.

The code was generated by a program. I had to create ComparableTuple generics for so many sizes, I wrote a program that generates the code. Still, I would want the code to be readable afterward.

If you meant the code generator could use recursion, I agree, although the code I wrote uses iteration. I expect that is almost certainly what you meant.

The run-time code shouldn't use recursion as that would be too inefficient, and this needs to be as fast as possible.
GeneralRe: goto statement Pin
Rob Grainger11-Nov-13 8:28
Rob Grainger11-Nov-13 8:28 
GeneralRe: goto statement Pin
Bill_Hallahan11-Nov-13 13:51
Bill_Hallahan11-Nov-13 13:51 
GeneralRe: goto statement Pin
Rob Grainger12-Nov-13 2:00
Rob Grainger12-Nov-13 2:00 
GeneralRe: goto statement Pin
Tarek Elqusi10-Nov-13 6:53
professionalTarek Elqusi10-Nov-13 6:53 
GeneralRe: goto statement Pin
Marc Clifton10-Nov-13 9:58
mvaMarc Clifton10-Nov-13 9:58 
GeneralRe: goto statement Pin
Joe Woodbury10-Nov-13 10:14
professionalJoe Woodbury10-Nov-13 10:14 
GeneralRe: goto statement Pin
Christian Graus10-Nov-13 12:01
protectorChristian Graus10-Nov-13 12:01 
GeneralRe: goto statement Pin
Member 1008817110-Nov-13 12:55
Member 1008817110-Nov-13 12:55 
GeneralRe: goto statement Pin
Stefan_Lang11-Nov-13 1:42
Stefan_Lang11-Nov-13 1:42 
GeneralRe: goto statement Pin
vl211-Nov-13 8:01
vl211-Nov-13 8:01 
GeneralRe: goto statement Pin
Stefan_Lang12-Nov-13 1:15
Stefan_Lang12-Nov-13 1:15 
GeneralRe: goto statement Pin
vl212-Nov-13 1:30
vl212-Nov-13 1:30 
GeneralRe: goto statement Pin
werinus12-Nov-13 1:34
werinus12-Nov-13 1:34 
GeneralRe: goto statement Pin
vl212-Nov-13 1:45
vl212-Nov-13 1:45 
GeneralRe: goto statement Pin
werinus12-Nov-13 2:36
werinus12-Nov-13 2:36 
GeneralRe: goto statement Pin
jschell12-Nov-13 9:44
jschell12-Nov-13 9:44 
GeneralRe: goto statement Pin
Bill_Hallahan12-Nov-13 13:04
Bill_Hallahan12-Nov-13 13:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   482 votes