« first day (536 days earlier)      last day (3093 days later) » 

 
13 hours later…
2:11 PM
Quite a debate about programmers and low level languages somewhere down-in-between-around.
 
2:50 PM
helloc @Rhymoid;
 
Hey
 
user824425
hi
 
user824425
I was about to ask "any ideas where I should report bugs in the CompCert C compiler" XD
 
user824425
but I already found my way to their GitHub mirror
 
3:36 PM
@Rhymoid aha, and that's official source tree :}
> "[09/2014] The working sources for CompCert are now hosted on Github." (source)
 
3:48 PM
helloc @Magisch; // sorry for the delay -- it looks like you are already gone :P
 
user824425
4:44 PM
@Kamiccolo Ah. That'll teach me to only read the link text :$
 
user824425
anyhow
 
user824425
free all; // ^+^
 
free @Rhymoid;
 
user4651282
5:01 PM
free @Rhymoid;
 
7:21 PM
kill -9 Rhymoid; //seems more appropriate
j/k :)
 
7:41 PM
@DrorK. pkill? :P
 
I say Town Square!
 
8:16 PM
So... let's say that you design a note-manager tool
This manager allows the user to create a group of notes
And notes can contain links to themselves
So one may create: new-group, with 2 notes: note1 and note2
note2 contains a link to note1
Once you copy 'note2' to a new group, what do you expect should happen to the link?
Should the link be absolute, and therefore direct to the previous group?
 
 
1 hour later…
9:45 PM
@DrorK. depends what kind of link is that. If it's just "previous note", than... But it makes more sense having absolute addressing. More versatile. During copy You can make it work both ways.
 
@Kamiccolo I'm not sure what's your answer, which one would you prefer- to have the link of the copied note to point to the previous group (absolute), or point to the local/current group?
And what would you expect to happen once you copied both notes to a new group? Still point to the old group, or point to the linked-note which has been copied to the local/new group?
 
@DrorK. absolute.
And relative if copying multiple notes.
 
@Kamiccolo What if you first copied the note with the link, and only later copied the linked-note?
 
@DrorK. still prefer absolute. But again, depends on what kind of groups are You talking?
 
@Kamiccolo A group of notes
@Kamiccolo The reason that I'm asking, is because Microsoft OneNote has surprised me!
It keeps 2 identifiers, the id of the note, and the id of the group it is placed in.
And when you try to access the link, it gives priority to the 'current' group, and looking for the id locally
If it's not found- it looks for it in the specified group id
So even if you copy the note with the link without the linked-note, the link will be 'absolute' and go to the original group
But if later you'll copy the linked-note to the new group, the link will go to that
Best of all worlds?
I suppose that the only limitation would be, that technically, now, you can't even 'force' a new link to go to the previous group's note, because the local note will always have priority
You'd have to create a new note, either at the previous group, or the new group
 
10:00 PM
@DrorK. is there a way to move a note?
 
@Kamiccolo You can either move or a note, or copy, paste, and delete
 
@DrorK. does it behave the same while moving?
 
@Kamiccolo Yes, either moving, or copy/paste/delete behave the same
 
10:20 PM
@DrorK. IMO this is a classical problem, where you want the software to be more clever than the user is
and that is a problem -- because most of the time, when there is no explicitly and clearly predictible outcome, but the software tries to act on its own and decide what to do, can lead to frustration for the users
my generic opinion is: the software should ask the user right after the copy action, wether it should copy the links as well or not
if the answer is yes, then all the links would point to their original locations
(IMO the links should be absolute and not relative)
if the anser is no, all the links should be removed
now, the specific answer of mine is: it depends, what is the actual meaning of a group? what is the purpose of grouping notes?
if the goal is to create a coherent relative hyperlink system on its own, then the links should be copied in case those links are implemented as some sort of "offsets" from the "beginning" of the group
if the goal is to add some extra tools for the users to organize their notes, then the anser is similar to the generic one
 
@PeterVaro this is what I was asking... :P
thinking of implementation - having absolute addressing is more versatile.
 
well, if I had to implement this, then there would be one question: is the linking an abstract feature, where notes are abstract data types as well, and all of the abstractions are handled by the software OR
the links and the notes are like plain texts where user is responsible to maintain the links based on file names, relative paths, etc.
if the former, I would generate an ID for each file (basically a pointer, just like files are in Git) and use it as absolute links
if the latter I would give the freedom to the user to define absolute and relative paths to other notes
helloc @ARK; // unfortunately you will need at least 20 rep to talk on SO chat
helloc @Insane;
 
10:51 PM
Hello @PeterVaro :P
39
Q: Are pointers considered a method of calling by reference in C?

InsaneIn my University's C programming class, the professor and subsequent book written by her uses the term call or pass by reference when referring to pointers in C. An example of what is considered a 'call by reference function' by my professor: int sum(int *a, int *b); An example of what is con...

I've updated my question, @Haris opinions?
Just kind of clarifying for anyone who reads it for the first time I guess.
 
let me try it :)
 
Open to anyone for sure, but Haris has been a chap and taken a nice interest in the question.
 
@Insane okay, I've read the question and Haris' answer as well
I think it is clear what you are asking, and the answer is clear as well -- however IMO it is a bit more verbose -- I mean, it is a good thing to mention the C++'s references, but I think it is totally not relevant from a C programmers perspective (not to mention the extra code snippet in the answer)
I prefer Hurkyl's answer more:
25
A: Are pointers considered a method of calling by reference in C?

HurkylReference is an overloaded term here; in general, a reference is simply a way to refer to something. A pointer refers to the object pointed to, and passing (by value) a pointer to an object is the standard way to pass by reference in C. C++ introduced reference types as a better way to express r...

(sorry @Haris) -- it is much more straight to the point, while also bringing C++ into the picture
(but again: this is probably a personal preference here)
 
11:43 PM
@PeterVaro I'm afraid that in this case the software wasn't smart- it was brilliant! ... it covered all bases at the expense of a special case that would be difficult to reproduce, yet alone to 'stumble' by accident
@PeterVaro It gave you both worlds, by default, without you needing to even think about it. Either you copied, or will copy, the referenced note, or you don't, both cases are covered
The only way for the link to be 'broken', is if you explicitly delete the pointed-to note. You can't have it any better than that :)
@Insane Hello world
 

« first day (536 days earlier)      last day (3093 days later) »