Click here to Skip to main content
15,502,331 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: WSO CCC OTD - 2022-08-16 Pin
Richard MacCutchan16-Aug-22 4:11
mveRichard MacCutchan16-Aug-22 4:11 
GeneralRe: WSO CCC OTD - 2022-08-16 Pin
pkfox16-Aug-22 3:47
professionalpkfox16-Aug-22 3:47 
GeneralRe: WSO CCC OTD - 2022-08-16 - Crikey Pin
FreedMalloc16-Aug-22 12:35
FreedMalloc16-Aug-22 12:35 
GeneralRe: WSO CCC OTD - 2022-08-16 - Crikey Pin
Greg Utas16-Aug-22 14:19
mveGreg Utas16-Aug-22 14:19 
GeneralRe: WSO CCC OTD - 2022-08-16 - Crikey Pin
pkfox16-Aug-22 22:45
professionalpkfox16-Aug-22 22:45 
GeneralVS 2022 a genuine wow moment Pin
dan!sh 15-Aug-22 22:57
professional dan!sh 15-Aug-22 22:57 
GeneralRe: VS 2022 a genuine wow moment Pin
pkfox15-Aug-22 23:09
professionalpkfox15-Aug-22 23:09 
GeneralRe: VS 2022 a genuine wow moment Pin
OriginalGriff15-Aug-22 23:10
mveOriginalGriff15-Aug-22 23:10 
It is pretty amazing sometimes - takes a bit of getting used to but it can really speed up your code.

But even for a quick'n'dirty, that's rather long winded - especially if it's a long string as ToCharArray allocates memory and copies string content into it. You can index directly into a string, remember?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: VS 2022 a genuine wow moment Pin
Kornfeld Eliyahu Peter15-Aug-22 23:26
professionalKornfeld Eliyahu Peter15-Aug-22 23:26 
GeneralRe: VS 2022 a genuine wow moment Pin
Dan Neely16-Aug-22 4:54
Dan Neely16-Aug-22 4:54 
GeneralRe: VS 2022 a genuine wow moment Pin
Member 11032317-Aug-22 4:33
Member 11032317-Aug-22 4:33 
GeneralRe: VS 2022 a genuine wow moment Pin
Lance Milleson17-Aug-22 7:15
Lance Milleson17-Aug-22 7:15 
GeneralRe: VS 2022 a genuine wow moment Pin
Randor 15-Aug-22 23:44
professional Randor 15-Aug-22 23:44 
GeneralRe: VS 2022 a genuine wow moment Pin
Calin Negru15-Aug-22 23:48
Calin Negru15-Aug-22 23:48 
GeneralRe: VS 2022 a genuine wow moment Pin
OriginalGriff16-Aug-22 1:00
mveOriginalGriff16-Aug-22 1:00 
GeneralRe: VS 2022 a genuine wow moment Pin
pkfox16-Aug-22 1:55
professionalpkfox16-Aug-22 1:55 
GeneralRe: VS 2022 a genuine wow moment Pin
Calin Negru16-Aug-22 2:33
Calin Negru16-Aug-22 2:33 
GeneralRe: VS 2022 a genuine wow moment Pin
OriginalGriff16-Aug-22 2:56
mveOriginalGriff16-Aug-22 2:56 
General[edit]Re: VS 2022 a genuine wow moment Pin
Calin Negru16-Aug-22 9:15
Calin Negru16-Aug-22 9:15 
GeneralRe: VS 2022 a genuine wow moment Pin
OriginalGriff16-Aug-22 9:24
mveOriginalGriff16-Aug-22 9:24 
GeneralRe: [edit]Re: VS 2022 a genuine wow moment[edited] Pin
OriginalGriff16-Aug-22 10:21
mveOriginalGriff16-Aug-22 10:21 
GeneralRe: [edit]Re: VS 2022 a genuine wow moment[edited] Pin
Calin Negru17-Aug-22 5:54
Calin Negru17-Aug-22 5:54 
GeneralRe: [edit]Re: VS 2022 a genuine wow moment[edited] Pin
OriginalGriff17-Aug-22 6:56
mveOriginalGriff17-Aug-22 6:56 
GeneralRe: [edit]Re: VS 2022 a genuine wow moment[edited] Pin
Calin Negru17-Aug-22 7:27
Calin Negru17-Aug-22 7:27 
GeneralRe: [edit]Re: VS 2022 a genuine wow moment Pin
OriginalGriff16-Aug-22 21:04
mveOriginalGriff16-Aug-22 21: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

How would you describe your current job?
Fighting dragons everyday or clicking the same boxes on the same forms, day after day?
  Results   337 votes