On 2014/10/04 04:12:14, Dan Eble wrote: > It's verbose, but it does the trick portably ...
10 years, 7 months ago
(2014-10-04 04:32:43 UTC)
#2
On 2014/10/04 04:12:14, Dan Eble wrote:
> It's verbose, but it does the trick portably (I think).
Too clever. I don't want to obfuscate the code like that (bringing type
overloading into play) just to dance around a warning. print_smob does not need
a check: we'll always set something other than the default print routine. The
other checks are going the way of mark_smob: just create a do-nothing default
function, and don't bother installing it when it has not been overridden.
I went through that dear-compiler-are-you-serious dance when turning mark_smob
into a member function (incidentally, that's what print_smob is going to do as
well). No point in doing the others in a different manner.
Issue 153970043: Eliminate "will never be null" warnings in smobs.tcc.
(Closed)
Created 10 years, 7 months ago by Dan Eble
Modified 10 years, 7 months ago
Reviewers: dak
Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Comments: 0