« first day (1143 days earlier)      last day (2483 days later) » 

2:11 AM
In C, if a struct defines at least one named member, it is allowed to additionally declare its last member with an incomplete array type. I have two questions about that.
1. Why is such a type declaration not allowed in the middle of a struct declaration, and
2. How does the compiler know that memory won't be allocated right after the struct, scuttling the final (incomplete) array declaration?
(Note: I think I already know the answer to these, I just want to make sure I'm right.)
 
 
2 hours later…
4:35 AM
@RobertHarvey You understand the purpose of how the FAM is meant to be used?
The idea is that if you have a sufficiently big object, you may use the FAM to access "beyond" the boundary of the struct itself, as-if your struct extends to the size of your container (the big object)
If the FAM will be positioned at the middle, it would overlap the bytes of the members that follow it. Obviously that's not a good thing
As to the second question, the compiler isn't responsible to make sure the 'container' for such a struct to be sufficiently big beyond the size of the struct as-if the FAM didn't exist. The programmer needs to introduce such an object/container sufficiently big for using the FAM
 
5:10 AM
The more Java I write, the more I hate it. The more I hate Java, the more I love C.
 
5:24 AM
@PeterVaro Are you as surprised as I am?
How is possible that a question with an obvious answer- gets so many upvotes?
 
 
2 hours later…
7:39 AM
@DrorK. the %p one? is there an obvious answer? :P is there anything that is obvious with C? o.O
 
I meant
If the question was: 2+2 = ? ... and the commonly-accepted answer would've been: 2+2 = 5! ... then it's surprising and exciting, and so forth
But if the commonly accepted answer is 2+2=4 ... what makes the question so special then?
40 upvotes and over 1000 views in less than a day, and that's without the 500 bounty (I'll place it tomorrow)
 
well, I don't know if you are aware of the fact, that if the conversation is active, or the answers/question is edited, each time the entry will be on top of the activity-view (or whatever we call it), that is, it will generate traffic among the people who are waiting for questions to answer to
now, if they visit the question, and find the question easy and correct enough to understand, yet they look at the answers and realise how deep it is, they will leave an upvote on the question
and automatically an upvote on the answer that seems about right
which generates traffic again
so yeah, I'm not surprised at all
:)
anyway, time to cycle to work!
goto cycling;
 
Have fun!
So that explains the exposure ^ ... he edited his answer multiple times, I guess that's what generated the traffic
 
7:59 AM
not only this explain just 25% of traffic
just people were curious of this question more than FAM that nobody know
 
@Stargateur The same thing happened in the FAM question, only when there was activity- it gained exposure
The activity produced more traffic than the bounty did. The exception being at the end of the bounty, then it was featured or something, so it made an impact
So my prediction is that the bounty wouldn't make much of a difference here
But a fun experiment, nevertheless
 
8:46 AM
It seems to me that my thread has more to do with Olaf than with anything C standard related
 
 
1 hour later…
 
1 hour later…
 
4 hours later…
3:02 PM
semver.org, ssl fail :p
 
3:13 PM
> This server could not prove that it is semver.org; its security certificate is from *.github.com. This may be caused by a misconfiguration or an attacker intercepting your connection. Learn more.
forgot to update according to limitations of subdomain certification
 
4:05 PM
there is a way to filter question with the reputation of the OP ^^
 
@Stargateur That was my first question I asked when I first joined here ^
 
I'm just got tired of noob and bad question :p
 
Giving people with higher reputation such a 'priority' simply makes sense
Also, I think that the daily cap is silly
The suppression of discussion is unusual but understandable
And I think that 50 points bounties are simply too low, the minimum should be higher
 
4:47 PM
@DrorK. By the way, I clearly think that add 500 bounty on this question is pointless
 
@Stargateur You don't think it would gain more exposure?
 
high reputation user don't care about bounty and low reput 50-100 will attract them
no need more
 
So you assume that rich people don't care about money?
BTW, I've already told the one that is likely to receive the bounty that I will place it, so obviously I have no intention to "change my mind"
But the point being that he didn't object or said it wasn't needed, etc etc... but: " If you want to take it to the "popular vote", then I'm game!"
 
5:45 PM
you will loose by popular vote by the way this question is already popular and you already loose
 
I knew that I would 'lose' even before I posted this question
At first I thought that it would either be closed/dup/downvoted, but now I see that even so people "choose" the wrong answer, it nevertheless gets lots of views and lots of upvotes
So my goal of gaining exposure is still in play
Currently it has ~1,550 views... paying 500 points for 750-1000 views- looks like a good deal to me
And obviously, this bounty is going to be a reward for somebody who invested their time, and was friendly and engaging
So what's wrong with rewarding people?
AND don't forget that months ago I already offered to give bounties to decent answers, unfortunately it was too time consuming to find such answers- since I'm not active here
So this way I'm (finally) keeping my word
 
 
5 hours later…
11:04 PM
by the way, @Stargateur , rewatching Stargate SG-1 for the 5th time at the moment... :D
 

« first day (1143 days earlier)      last day (2483 days later) »