Click here to Skip to main content
15,896,278 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: What I want..... Pin
#realJSOP27-Mar-19 8:35
professional#realJSOP27-Mar-19 8:35 
GeneralRe: What I want..... Pin
Slacker00727-Mar-19 9:35
professionalSlacker00727-Mar-19 9:35 
GeneralRe: What I want..... Pin
MarkTJohnson27-Mar-19 9:47
professionalMarkTJohnson27-Mar-19 9:47 
GeneralRe: What I want..... Pin
Dean Roddey27-Mar-19 14:40
Dean Roddey27-Mar-19 14:40 
GeneralRe: What I want..... Pin
Marc Clifton27-Mar-19 14:44
mvaMarc Clifton27-Mar-19 14:44 
GeneralRe: What I want..... Pin
englebart28-Mar-19 1:55
professionalenglebart28-Mar-19 1:55 
GeneralRe: What I want..... Pin
Member 916705728-Mar-19 2:05
Member 916705728-Mar-19 2:05 
GeneralRe: What I want..... Pin
rjmoses28-Mar-19 2:53
professionalrjmoses28-Mar-19 2:53 
Your 3 byte integer problem is exactly the kind of work-around that causes problems. I like your solution to the LE problem--simple and directly understandable.

But, what if we didn't have to think about it? What if the variable could be defined as "3 byte little endian integer" and the conversion to/from machine requirements took place automatically on all future references? How could something like that be implemented at the language, compiler or machine level?

I cannot tell you how many times I've seen "char" definitions used inappropriately when a "byte" definition would make more sense. Or things like:

"memcpy( (char *) &structa, (char *) &structb, 100 );"

(And if someone says they have never done something like that, I say "BULL!". They've done it one way or another in whatever language except perhaps LISP or SNOBOL).

Just thinking.
GeneralRe: What I want..... Pin
Member 916705728-Mar-19 3:05
Member 916705728-Mar-19 3:05 
GeneralRe: What I want..... Pin
Slow Eddie28-Mar-19 3:07
professionalSlow Eddie28-Mar-19 3:07 
GeneralRe: What I want..... Pin
Steve Naidamast28-Mar-19 5:10
professionalSteve Naidamast28-Mar-19 5:10 
GeneralRe: What I want..... Pin
rjmoses28-Mar-19 23:05
professionalrjmoses28-Mar-19 23:05 
GeneralRe: What I want..... Pin
Kirk 1038982128-Mar-19 8:29
Kirk 1038982128-Mar-19 8:29 
GeneralRe: What I want..... Pin
rjmoses29-Mar-19 4:35
professionalrjmoses29-Mar-19 4:35 
GeneralRe: What I want..... Pin
Kirk 1038982129-Mar-19 6:44
Kirk 1038982129-Mar-19 6:44 
QuestionYou've got to get out more... Pin
  Forogar  27-Mar-19 3:02
professional  Forogar  27-Mar-19 3:02 
AnswerRe: You've got to get out more... Pin
F-ES Sitecore27-Mar-19 3:10
professionalF-ES Sitecore27-Mar-19 3:10 
GeneralRe: You've got to get out more... Pin
dan!sh 27-Mar-19 3:34
professional dan!sh 27-Mar-19 3:34 
AnswerRe: You've got to get out more... Pin
dan!sh 27-Mar-19 3:34
professional dan!sh 27-Mar-19 3:34 
AnswerRe: You've got to get out more... Pin
User 483504727-Mar-19 3:40
User 483504727-Mar-19 3:40 
AnswerRe: You've got to get out more... Pin
Sander Rossel27-Mar-19 3:41
professionalSander Rossel27-Mar-19 3:41 
GeneralRe: You've got to get out more... Pin
  Forogar  27-Mar-19 4:06
professional  Forogar  27-Mar-19 4:06 
AnswerRe: You've got to get out more... Pin
Ron Anders27-Mar-19 3:49
Ron Anders27-Mar-19 3:49 
AnswerRe: You've got to get out more... Pin
Kornfeld Eliyahu Peter27-Mar-19 4:55
professionalKornfeld Eliyahu Peter27-Mar-19 4:55 
PraiseRe: You've got to get out more... Pin
RickZeeland27-Mar-19 10:19
mveRickZeeland27-Mar-19 10:19 

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.