Click here to Skip to main content
15,499,594 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: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch18-Nov-20 21:28
mvahoney the codewitch18-Nov-20 21:28 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
fd975018-Nov-20 22:18
professionalfd975018-Nov-20 22:18 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch19-Nov-20 3:22
mvahoney the codewitch19-Nov-20 3:22 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
ColinBurnell18-Nov-20 23:26
professionalColinBurnell18-Nov-20 23:26 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch19-Nov-20 3:21
mvahoney the codewitch19-Nov-20 3:21 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Stuart Dootson19-Nov-20 1:39
professionalStuart Dootson19-Nov-20 1:39 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Member 1330167919-Nov-20 3:56
MemberMember 1330167919-Nov-20 3:56 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch19-Nov-20 4:01
mvahoney the codewitch19-Nov-20 4:01 
You misunderstand me.

I'm not saying C doesn't enforce types.

I'm saying if you want to change the type it's enforcing you just have to give it a little nudge.

For example

C++
struct S {
   int x;
   int y;
};

...

S s;

s.x=1;
s.y=1;

byte* bp = (byte*)&s;

// now i can work on it as a series of bytes

Real programmers use butterflies

GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Member 1330167919-Nov-20 10:11
MemberMember 1330167919-Nov-20 10:11 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Rusty Bullet19-Nov-20 4:27
MemberRusty Bullet19-Nov-20 4:27 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
NightPen19-Nov-20 6:29
MemberNightPen19-Nov-20 6:29 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
Jan Heckman20-Nov-20 13:02
professionalJan Heckman20-Nov-20 13:02 
GeneralRe: I love C where types are basically a suggestion rather than a rule Pin
honey the codewitch20-Nov-20 13:22
mvahoney the codewitch20-Nov-20 13:22 
GeneralUseless IoT Pin
David O'Neil18-Nov-20 6:45
professionalDavid O'Neil18-Nov-20 6:45 
GeneralRe: Useless IoT Pin
honey the codewitch18-Nov-20 6:57
mvahoney the codewitch18-Nov-20 6:57 
GeneralRe: Useless IoT Pin
OriginalGriff18-Nov-20 7:10
mveOriginalGriff18-Nov-20 7:10 
GeneralRe: Useless IoT Pin
OriginalGriff18-Nov-20 7:17
mveOriginalGriff18-Nov-20 7:17 
GeneralRe: Useless IoT Pin
honey the codewitch18-Nov-20 7:19
mvahoney the codewitch18-Nov-20 7:19 
GeneralRe: Useless IoT Pin
David O'Neil18-Nov-20 7:26
professionalDavid O'Neil18-Nov-20 7:26 
GeneralRe: Useless IoT Pin
Stuart Dootson19-Nov-20 1:41
professionalStuart Dootson19-Nov-20 1:41 
GeneralRe: Useless IoT Pin
enhzflep20-Nov-20 2:38
Memberenhzflep20-Nov-20 2:38 
GeneralRe: Useless IoT Pin
honey the codewitch20-Nov-20 2:42
mvahoney the codewitch20-Nov-20 2:42 
GeneralRe: Useless IoT Pin
OriginalGriff18-Nov-20 6:57
mveOriginalGriff18-Nov-20 6:57 
GeneralRe: Useless IoT Pin
Rick York18-Nov-20 7:01
mveRick York18-Nov-20 7:01 
GeneralRe: Useless IoT Pin
Maximilien18-Nov-20 7:26
MemberMaximilien18-Nov-20 7:26 

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

When thinking about your job, how important is the option to work from home?
Some bosses are casual about where you work, and some, naming no names, will insist you're in the office, always. What are your thoughts?
  Results   774 votes