Click here to Skip to main content
15,894,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
CPallini16-Nov-23 20:08
mveCPallini16-Nov-23 20:08 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
Peter_in_278017-Nov-23 18:28
professionalPeter_in_278017-Nov-23 18:28 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
Richard MacCutchan17-Nov-23 22:11
mveRichard MacCutchan17-Nov-23 22:11 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
Richard MacCutchan16-Nov-23 21:29
mveRichard MacCutchan16-Nov-23 21:29 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
jschell17-Nov-23 5:36
jschell17-Nov-23 5:36 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
honey the codewitch17-Nov-23 5:38
mvahoney the codewitch17-Nov-23 5:38 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
trønderen17-Nov-23 8:35
trønderen17-Nov-23 8:35 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
honey the codewitch17-Nov-23 8:37
mvahoney the codewitch17-Nov-23 8:37 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
trønderen17-Nov-23 11:07
trønderen17-Nov-23 11:07 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
jschell20-Nov-23 7:11
jschell20-Nov-23 7:11 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
honey the codewitch20-Nov-23 7:20
mvahoney the codewitch20-Nov-23 7:20 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
JudyL_MD17-Nov-23 7:53
JudyL_MD17-Nov-23 7:53 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
honey the codewitch17-Nov-23 7:53
mvahoney the codewitch17-Nov-23 7:53 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
JudyL_MD17-Nov-23 8:08
JudyL_MD17-Nov-23 8:08 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
RedDk17-Nov-23 12:05
RedDk17-Nov-23 12:05 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
RedDk18-Nov-23 9:38
RedDk18-Nov-23 9:38 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
trønderen18-Nov-23 9:54
trønderen18-Nov-23 9:54 
GeneralRe: &foo[bar] or (foo + bar) ? Pin
RedDk18-Nov-23 10:55
RedDk18-Nov-23 10:55 
AnswerRe: &foo[bar] or (foo + bar) ? Pin
trønderen18-Nov-23 11:35
trønderen18-Nov-23 11:35 
One of the things that pisses me off in this book I bought about programming GPUs is that he presents so called "pseudocode" example for presenting his solutions. This pseudocode makes extensive use of C style pointer arithmetic, such as (foo + bar) without a word of mention; the reader is supposed to understand what it means, regardless of his programming background or preferred language.

I do have enough background to understand it when I see it. But I see pseudocode as abstracted above one specific programming language, not just as an excuse for ignoring specific requirements of one chosen language. (foo+bar) is something you'll never find in any comparable language. It doesn't belong in any abstracted pseudocode.

So does it belong in concrete code in one specific language?

Well, if you strive to establish a tribal code, to distinguish between those who are in and those outside, this may be one of your tools. Those who say 'But that is an array, FGS! - Why don't you treat it as one?' - and recoil in horror. Maybe those could have been good developers for your project.
Question(Visual Studio) Project build order/dependencies, Should they work ? Pin
Maximilien15-Nov-23 7:28
Maximilien15-Nov-23 7:28 
AnswerRe: Project build order/dependencies, Should they work ? Pin
Greg Utas15-Nov-23 7:41
professionalGreg Utas15-Nov-23 7:41 
GeneralRe: Project build order/dependencies, Should they work ? Pin
Maximilien15-Nov-23 7:47
Maximilien15-Nov-23 7:47 
GeneralRe: Project build order/dependencies, Should they work ? Pin
Greg Utas15-Nov-23 8:02
professionalGreg Utas15-Nov-23 8:02 
GeneralRe: Project build order/dependencies, Should they work ? Pin
Maximilien15-Nov-23 9:21
Maximilien15-Nov-23 9:21 
GeneralRe: Project build order/dependencies, Should they work ? Pin
Greg Utas15-Nov-23 9:48
professionalGreg Utas15-Nov-23 9:48 

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.