Click here to Skip to main content
14,538,503 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.
 
AnswerRe: An opinion on naming Pin
Greg Utas5-Dec-19 8:03
professionalGreg Utas5-Dec-19 8:03 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:04
mvahoney the codewitch5-Dec-19 8:04 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:25
professionalSander Rossel5-Dec-19 8:25 
AnswerRe: An opinion on naming Pin
Marc Clifton5-Dec-19 8:07
mvaMarc Clifton5-Dec-19 8:07 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:09
mvahoney the codewitch5-Dec-19 8:09 
AnswerRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:39
professionalSander Rossel5-Dec-19 8:39 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:40
mvahoney the codewitch5-Dec-19 8:40 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:50
professionalSander Rossel5-Dec-19 8:50 
No it doesn't, you're simply dequeueing and requeueing everything, effectively ending up with the same queue.
The only thing you do is grab the value when you hit the specified index Wink | ;)
honey the codewitch wrote:
your solution would be a decent one
NO IT'S NOT!
It's de/requeueing EVERYTHING! Dead | X|
I think Marc's reflection solution would be a better and faster one Laugh | :laugh:
It's also not thread safe, very thread unsafe even.
You probably only thought it was decent because it was so beautifully written and formatted Roll eyes | :rolleyes:

GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:53
mvahoney the codewitch5-Dec-19 8:53 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 9:13
professionalSander Rossel5-Dec-19 9:13 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 9:27
mvahoney the codewitch5-Dec-19 9:27 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 10:18
professionalSander Rossel5-Dec-19 10:18 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 10:28
mvahoney the codewitch5-Dec-19 10:28 
AnswerRe: An opinion on naming Pin
Rick York5-Dec-19 10:44
mveRick York5-Dec-19 10:44 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 10:45
mvahoney the codewitch5-Dec-19 10:45 
GeneralRe: An opinion on naming Pin
Rick York5-Dec-19 14:49
mveRick York5-Dec-19 14:49 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 14:51
mvahoney the codewitch5-Dec-19 14:51 
AnswerRe: An opinion on naming Pin
AFell25-Dec-19 11:51
MemberAFell25-Dec-19 11:51 
GeneralCannot see items in an STL container in VS2017 Pin
Greg Utas5-Dec-19 7:09
professionalGreg Utas5-Dec-19 7:09 
GeneralRe: Cannot see items in an STL container in VS2017 Pin
Richard MacCutchan5-Dec-19 7:46
mveRichard MacCutchan5-Dec-19 7:46 
GeneralRe: Cannot see items in an STL container in VS2017 Pin
Greg Utas5-Dec-19 7:59
professionalGreg Utas5-Dec-19 7:59 
GeneralKeyboard recommendations Pin
Mike Hankey5-Dec-19 5:20
professionalMike Hankey5-Dec-19 5:20 
GeneralRe: Keyboard recommendations Pin
PIEBALDconsult5-Dec-19 5:27
professionalPIEBALDconsult5-Dec-19 5:27 
GeneralRe: Keyboard recommendations Pin
Mike Hankey5-Dec-19 5:49
professionalMike Hankey5-Dec-19 5:49 
AnswerRe: Keyboard recommendations Pin
lopatir5-Dec-19 5:29
Memberlopatir5-Dec-19 5:29 

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.