Search:

Type: Posts; User: Sir Galahad

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Just wait till you compile the damn thing. You...

    Just wait till you compile the damn thing. You could write a short novel in the time it takes to do that....
  2. Going back to when it was first being developed...

    Going back to when it was first being developed it was like the world was on their shoulders to make something that would make everyone happy. The result is this huge mega-monolithic thing we call...
  3. Poll: Kind of pedantic but okay. I prefer function over...

    Kind of pedantic but okay. I prefer function over form I guess. I would rather not have to type ten times what I could be just to be "semantically correct".



    Well I'm not so willing to waste my...
  4. Okay so then what is the sound of one finger...

    Okay so then what is the sound of one finger snapping against "no hand"?
  5. Poll: Assigning a print object to a value and having...

    Assigning a print object to a value and having that, well, print is not a very surprising result. Seems quite natural actually. Unlike associating output with "leftness" or something anyway...
  6. Clever! The old "if you can't gain enlightenment...

    Clever! The old "if you can't gain enlightenment pondering an open-ended question just come up with something indisputably semantically correct" trick.
  7. Poll: I just don't see it. So output is like doubling...

    I just don't see it. So output is like doubling and input halving? Meh. Operator + would've been more natural than that at least.

    And what, no vote? Surely even witches have opinions...
  8. Replies
    12
    Views
    186

    I honestly don't know what I was thinking there....

    I honestly don't know what I was thinking there. Yeah that would not work.
  9. What is the sound of one hand clapping?

    "Two hands clap and there is a sound.
    What is the sound of one hand?.."

    - Hakuin Ekaku

    I love this koan. Sort of like how we humans are so keen to grasp concrete concepts but not so much...
  10. Replies
    12
    Views
    186

    Perfect. And defining them as friend functions...

    Perfect. And defining them as friend functions means less verbose template syntax too, so I guess I'll do it that way.
  11. Replies
    12
    Views
    186

    Yes, that's it! That's exactly what I was talking...

    Yes, that's it! That's exactly what I was talking about. Okay, so is a friend function the same thing or is there some semantic difference? I'll look it up...
  12. Poll: Well I compiled and ran it if that's what you're...

    Well I compiled and ran it if that's what you're asking. Otherwise no. It has only been like an hour now so...
  13. Replies
    12
    Views
    186

    I was just thinking that I'd heard that operators...

    I was just thinking that I'd heard that operators defined outside of the class were somehow "more flexible" or something?

    Thanks for the other bits of advice by the way. I think I might need a...
  14. Poll: Do C++ output streams need a better interface?

    Do you ever get the feeling when you're working with std ostreams that there's just way too much typing going on? I do. Never quite understood why the left-shift operator was chosen either.

    So...
  15. Replies
    12
    Views
    186

    Thanks! I didn't see any single-header C++...

    Thanks! I didn't see any single-header C++ libraries on the list but that does seem to be the search term I was looking for.

    Also regarding the rules of operator overloading. Should they all be...
  16. Replies
    12
    Views
    186

    Library for working with error terms?

    Take the number V = 1.2 +/- 0.3 for example. So V spans the interval [0.9, 1.5]. Then V + V -> 2.4 +/- 0.6 -> [1.8, 3] and V * V = 1.53 +/- 0.72 -> [0.81, 2.25], etc.

    I have a rough implementation...
  17. Best rule of thumb: if the job can be done...

    Best rule of thumb: if the job can be done without it, use something else. Most useful thing about a #define is conditional compilation anyway...
  18. Replies
    9
    Views
    240

    Nice! Blocky as hell but still looks pretty cool.

    Nice! Blocky as hell but still looks pretty cool.
  19. Replies
    7
    Views
    358

    Funny digression: She gave it to him - Not at...

    Funny digression:

    She gave it to him - Not at all confusing
    He gave it to him - Kind of ambiguous
    It gave it to it - Sounds like nonsense
  20. And you're escaping this special value 0x7d as...

    And you're escaping this special value 0x7d as well I assume? If not, try that. Otherwise maybe post the code for the encoder. Also your decoding loop has a possible buffer-overflow bug; you...
  21. Replies
    13
    Views
    290

    No need, that's what strtol does for you:...

    No need, that's what strtol does for you: converts a string to a long.



    Well that's true, good point.
  22. Replies
    13
    Views
    290

    If you're only going to be working with plain...

    If you're only going to be working with plain ints why not just use atoi()?
  23. Think about it this way. A vector an...

    Think about it this way. A vector<string> an array of array of chars. So what you're really asking is similar to wanting to convert an entire spreadsheet into a single cell! So unless that...
  24. Thread: FPN math

    by Sir Galahad
    Replies
    84
    Views
    1,796

    Well that's good news. You obviously have a much...

    Well that's good news. You obviously have a much better grasp of the problem than I could ever hope to. And no I don't know of any actual list of corner cases, just a memory of things like the...
  25. Replies
    4
    Views
    274

    Something interesting to think about all this is...

    Something interesting to think about all this is how a tokenizer is really just like a lower-level parser that itself has received it's own input (characters) from another parser that processes...
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4