Click here to Skip to main content
14,770,418 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 9:35
mva#realJSOP27-Mar-19 9:35 
GeneralRe: What I want..... Pin
Slacker00727-Mar-19 10:35
professionalSlacker00727-Mar-19 10:35 
GeneralRe: What I want..... Pin
MarkTJohnson27-Mar-19 10:47
professionalMarkTJohnson27-Mar-19 10:47 
GeneralRe: What I want..... Pin
Dean Roddey27-Mar-19 15:40
MemberDean Roddey27-Mar-19 15:40 
GeneralRe: What I want..... Pin
Marc Clifton27-Mar-19 15:44
mvaMarc Clifton27-Mar-19 15:44 
GeneralRe: What I want..... Pin
englebart28-Mar-19 2:55
professionalenglebart28-Mar-19 2:55 
GeneralRe: What I want..... Pin
Member 916705728-Mar-19 3:05
MemberMember 916705728-Mar-19 3:05 
GeneralRe: What I want..... Pin
rjmoses28-Mar-19 3:53
professionalrjmoses28-Mar-19 3: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 4:05
MemberMember 916705728-Mar-19 4:05 
GeneralRe: What I want..... Pin
Slow Eddie28-Mar-19 4:07
professionalSlow Eddie28-Mar-19 4:07 
GeneralRe: What I want..... Pin
Steve Naidamast28-Mar-19 6:10
professionalSteve Naidamast28-Mar-19 6:10 
GeneralRe: What I want..... Pin
rjmoses29-Mar-19 0:05
professionalrjmoses29-Mar-19 0:05 
GeneralRe: What I want..... Pin
Kirk 1038982128-Mar-19 9:29
MemberKirk 1038982128-Mar-19 9:29 
GeneralRe: What I want..... Pin
rjmoses29-Mar-19 5:35
professionalrjmoses29-Mar-19 5:35 
GeneralRe: What I want..... Pin
Kirk 1038982129-Mar-19 7:44
MemberKirk 1038982129-Mar-19 7:44 
QuestionYou've got to get out more... Pin
  Forogar  27-Mar-19 4:02
professional  Forogar  27-Mar-19 4:02 
AnswerRe: You've got to get out more... Pin
F-ES Sitecore27-Mar-19 4:10
mveF-ES Sitecore27-Mar-19 4:10 
GeneralRe: You've got to get out more... Pin
lw@zi 27-Mar-19 4:34
professional lw@zi 27-Mar-19 4:34 
AnswerRe: You've got to get out more... Pin
lw@zi 27-Mar-19 4:34
professional lw@zi 27-Mar-19 4:34 
AnswerRe: You've got to get out more... Pin
User 483504727-Mar-19 4:40
MemberUser 483504727-Mar-19 4:40 
AnswerRe: You've got to get out more... Pin
Sander Rossel27-Mar-19 4:41
professionalSander Rossel27-Mar-19 4:41 
GeneralRe: You've got to get out more... Pin
  Forogar  27-Mar-19 5:06
professional  Forogar  27-Mar-19 5:06 
AnswerRe: You've got to get out more... Pin
Ron Anders27-Mar-19 4:49
MemberRon Anders27-Mar-19 4:49 
AnswerRe: You've got to get out more... Pin
Kornfeld Eliyahu Peter27-Mar-19 5:55
professionalKornfeld Eliyahu Peter27-Mar-19 5:55 
PraiseRe: You've got to get out more... Pin
RickZeeland27-Mar-19 11:19
mveRickZeeland27-Mar-19 11: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.