Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Lorenzo Donatiā
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #283890 |
That's nice. Just something is missing: the definition of `cstring_cstr` used in the call to `puts` in the example usage. Moreover, I'd like to see a complete class implementation. Maybe you could fill-in all the removed parts, if the resulting answer wouldn't become too big. (more) |
— | 10 months ago |
Comment | Post #282489 |
I would find it interesting, especially encapsulation and setters/getters. I was about to suggest writing a "paper" but I realize now that that is a category only on EE.codidact. (more) |
— | 10 months ago |
Comment | Post #285813 |
@#8176 Mmm. I admit that your multidimensional array example had me stumped and I have to think about it. Moreover, I agree that the terms "pointers" and "references" are language-specific. What I argued about is the term "pass-by-reference", which is (on the contrary) quite standard (albeit the impl... (more) |
— | 10 months ago |
Comment | Post #287301 |
I share your concern: bad recommendations are worse than no recommendations. However I strongly feel there is a really bad need for a place where books and (IMO) other Internet sources (e.g. reference sites like cppreference.com) are evaluated and reviewed *with competence*. I agree we may still lack... (more) |
— | 10 months ago |
Comment | Post #285813 |
@#8176 Moreover your example of a "function passed by reference" is not relevant, since functions in C are not objects (they are not first class values), so there is nothing to be passed except their pointers. That's true even in other contexts. Function identifiers represent pointers to the code of ... (more) |
— | 10 months ago |
Comment | Post #285813 |
@#8176 Sorry, I disagree. In the first case you *specify* an array, but that array is not actually passed to the function (i.e. the function doesn't get *direct* access to the object). Array decay makes that completely equivalent to directly pass a pointer, which is *copied*. The function always gets... (more) |
— | 10 months ago |
Comment | Post #285716 |
Sorry to disagree with some points. Yes C has references (in the form of pointers) and you can pass them to functions. However that is not what in computer language theory and practice is known as a "pass-by-reference" mechanism. This latter is the ability of a function to *access* the object that th... (more) |
— | 10 months ago |
Comment | Post #282843 |
Thanks for solving this. I edited my question to clarify things. (more) |
— | almost 3 years ago |
Comment | Post #282839 |
Thank you really for spending your time for testing that. However, I had already flagged that comment, but I wasn't sure of the usual workflow here. So I contextually posted that complaint on meta. And I still have to adapt to the user interface (which is still a bit more cumbersome that the one on t... (more) |
— | almost 3 years ago |
Comment | Post #282839 |
You tell me I have no evidence about the downvotes. You are right. The same is true for that comment. There is no evidence that I copy-pasted. So that comment has to go (who cares about the downvotes). And the fact the commenter had a shit day *may* justify his hasty posting. But that is not a good r... (more) |
— | almost 3 years ago |
Comment | Post #282839 |
As I explained **I'm getting really pissed off** not because of the loss of rep points, but the loss of *actual* reputation. That comment is still there and is associated with my answer and my REAL name. Anyone working in academia or related fields knows *how bad is that accusation*, since *it would ... (more) |
— | almost 3 years ago |