Re: [petsc-dev] macro wrappers around functions to caste suck
7 Apr
2013
7 Apr
'13
4:10 p.m.
On Apr 5, 2013, at 9:34 PM, Jed Brown <[email protected]> wrote:
On Fri, Apr 5, 2013 at 9:28 PM, Barry Smith <[email protected]> wrote: The biggest mistake of C was CPP
Hey, we can eliminate the currently needed (PetscObject) cast in a bunch of places with this horrible trick.
I thought you liked the explicitness of that cast.
That was my rationalization for ugly code; until a better solution appeared and I no longer needed the rationalization :-)
This actually doesn't introduce any more macros, its the same number with more reasonable naming.
Sure, it just uses #undef. I have no problem with changing it.
4873
Age (days ago)
4873
Last active (days ago)
0 comments
1 participants
participants (1)
-
Barry Smith