Click here to Skip to main content
15,920,596 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: Internet surfing on mobile devices... Pin
CDP180226-Aug-16 6:47
CDP180226-Aug-16 6:47 
GeneralRe: Internet surfing on mobile devices... Pin
Brady Kelly26-Aug-16 4:03
Brady Kelly26-Aug-16 4:03 
GeneralRe: Internet surfing on mobile devices... Pin
TheGreatAndPowerfulOz26-Aug-16 4:31
TheGreatAndPowerfulOz26-Aug-16 4:31 
GeneralRe: Internet surfing on mobile devices... Pin
snorkie26-Aug-16 5:39
professionalsnorkie26-Aug-16 5:39 
GeneralRe: Internet surfing on mobile devices... Pin
dandy7226-Aug-16 6:41
dandy7226-Aug-16 6:41 
GeneralRe: Internet surfing on mobile devices... Pin
Vikram A Punathambekar28-Aug-16 7:31
Vikram A Punathambekar28-Aug-16 7:31 
GeneralTuples... Pin
glennPattonWork326-Aug-16 0:24
professionalglennPattonWork326-Aug-16 0:24 
GeneralRe: Tuples... Pin
den2k8826-Aug-16 0:35
professionalden2k8826-Aug-16 0:35 
A n-uple is an ordered atomic indivisible set of data. So yes, a structure is a n-uple. Tuples are simply 2-pieces n-uples, std::pair for example provides tuples.

ADD: one practical usage of tuples would be simple comparison and search between collections. Instead of having to overload an operator like in C++, creating a comparison methond in the structure like less guru-like C++ (which I prefer), creating a function to compare a structure instance to another or a macro like in C you simply can use the "==" provided by the language. Safer, more intuitive and faster to implement at the cost of raw power.
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver

When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

GeneralRe: Tuples... Pin
CPallini26-Aug-16 0:39
mveCPallini26-Aug-16 0:39 
GeneralRe: Tuples... Pin
den2k8826-Aug-16 0:42
professionalden2k8826-Aug-16 0:42 
GeneralRe: Tuples... Pin
Pete O'Hanlon26-Aug-16 0:38
mvePete O'Hanlon26-Aug-16 0:38 
GeneralRe: Tuples... Pin
Slacker00726-Aug-16 1:17
professionalSlacker00726-Aug-16 1:17 
GeneralRe: Tuples... Pin
Brady Kelly26-Aug-16 4:10
Brady Kelly26-Aug-16 4:10 
GeneralRe: Tuples... Pin
TheGreatAndPowerfulOz26-Aug-16 4:35
TheGreatAndPowerfulOz26-Aug-16 4:35 
GeneralRe: Tuples... Pin
Pete O'Hanlon26-Aug-16 4:56
mvePete O'Hanlon26-Aug-16 4:56 
GeneralRe: Tuples... Pin
Brady Kelly27-Aug-16 17:23
Brady Kelly27-Aug-16 17:23 
GeneralRe: Tuples... Pin
Rage26-Aug-16 0:44
professionalRage26-Aug-16 0:44 
GeneralRe: Tuples... Pin
den2k8826-Aug-16 0:46
professionalden2k8826-Aug-16 0:46 
GeneralRe: Tuples... Pin
Rage26-Aug-16 0:58
professionalRage26-Aug-16 0:58 
GeneralRe: Tuples... Pin
den2k8826-Aug-16 1:41
professionalden2k8826-Aug-16 1:41 
GeneralRe: Tuples... Pin
Rage26-Aug-16 1:47
professionalRage26-Aug-16 1:47 
GeneralRe: Tuples... Pin
harold aptroot26-Aug-16 0:48
harold aptroot26-Aug-16 0:48 
GeneralRe: Tuples... Pin
den2k8826-Aug-16 0:53
professionalden2k8826-Aug-16 0:53 
GeneralRe: Tuples... Pin
Sander Rossel26-Aug-16 1:09
professionalSander Rossel26-Aug-16 1:09 
GeneralRe: Tuples... Pin
#realJSOP26-Aug-16 1:32
professional#realJSOP26-Aug-16 1:32 

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.