> Kind of like making the bitwise shift operators sometimes mean "read/write IO 
> stream" :smile:

Well, at least that one basically doesn't make any sense in C with the types 
involved.  It's not mimicking the syntax for 99.8% identical behavior and .2% 
surprise :grin: 

> @b4n now that you are returning `nullptr` from `pixels()` but you did not put 
> a check for that on the return value of every use of pixels() all you have 
> done is shift the problem. :stuck_out_tongue_winking_eye:

Not really: at least to the C guy I am, reading 0 bytes from `nullptr` or 0 
bytes from a valid pointer doesn't seem much different.

> Now we can explain it, I suspect that it would be best to pass it to Neil to 
> decide the best solution for fixing drawing indicators on zero sized code 
> points. He can best determine a solution that fits with his aspirations of 
> `noexcept` everywhere and other performance issues.

Agreed.  I wanted to understand the issue and then provide a patch that Fedora 
could use to stop these repeated crashes.  Now it'll be time to hand it out to 
Neil and let it live :)

> @b4n @codebrainz just think of C++ as Sea++ a language which no longer has a 
> connection to C, and that does its own thing, like Java or D, thats 
> effectively what it has become smile

And they kept the C syntax weirdies like `&array[index]`, very clever on their 
part :stuck_out_tongue_closed_eyes: 

OK, enough trolling about C++ on my part for the moment :slightly_smiling_face: 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1041#issuecomment-740396343

Reply via email to