Re: Type-safe stacks

1999-04-13 Thread Anonymous
As I was writing this response to Ben I came to realize that this is a religious issue. I believe libraries should be as simple and general purpose as possible, and the new STACK_OF() stuff is moving in the other direction. If no one else thinks like I do I'll shut up and like it. But here's

Re: Type-safe stacks

1999-04-13 Thread Ben Laurie
Anonymous wrote: As I was writing this response to Ben I came to realize that this is a religious issue. I believe libraries should be as simple and general purpose as possible, and the new STACK_OF() stuff is moving in the other direction. If no one else thinks like I do I'll shut up and

RE: Type-safe stacks

1999-04-13 Thread Ron Ramsay
Let's not go down the C++ path, ever! -Original Message- From: Paul Keogh [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, April 13, 1999 7:40 PM To: [EMAIL PROTECTED] Subject: RE: Type-safe stacks Have you considered using the stack template class from the STL ? I appreciate

RE: Type-safe stacks

1999-04-12 Thread salzr
Ahh, I misunderstood what you meant by macros. I thought you meant things like: #define sk_X509_push(sk, v) \ sk_push((stack*)sk, (char*)v) Which is, of course, sub-optimal. Having a bunch of one-line wrapper functions isn't unreasonable. On the other hand, since stack.[ch] are so small,

Re: Type-safe stacks

1999-04-12 Thread Ben Laurie
[EMAIL PROTECTED] wrote: Ahh, I misunderstood what you meant by macros. I thought you meant things like: #define sk_X509_push(sk, v) \ sk_push((stack*)sk, (char*)v) Which is, of course, sub-optimal. Having a bunch of one-line wrapper functions isn't unreasonable. Would I do

Re: Type-safe stacks

1999-04-12 Thread Dr Stephen Henson
Ben Laurie wrote: Don't forget that templates are really just a glorified preprocessor (well, OK, they aren't now but they were at first) :-) Seriously, you can do a lot of what templates do with a preprocessor if you try hard enough. Anyway, the interesting stuff all happens here, in

Re: Type-safe stacks

1999-04-12 Thread Ben Laurie
Dr Stephen Henson wrote: Ben Laurie wrote: Don't forget that templates are really just a glorified preprocessor (well, OK, they aren't now but they were at first) :-) Seriously, you can do a lot of what templates do with a preprocessor if you try hard enough. Anyway, the

Re: Type-safe stacks

1999-04-12 Thread Anonymous
Ben Laurie [EMAIL PROTECTED] said: If everyone thinks it is a terrible idea I'm prepared to undo it. I'll fight first, though, coz I think it is a great idea :-) I, for one, do think it is a terrible idea and I "vote against" these changes. Marvelous macros are neat and all, but - They

Re: Type-safe stacks

1999-04-12 Thread Ben Laurie
Anonymous wrote: Ben Laurie [EMAIL PROTECTED] said: If everyone thinks it is a terrible idea I'm prepared to undo it. I'll fight first, though, coz I think it is a great idea :-) I, for one, do think it is a terrible idea and I "vote against" these changes. Marvelous macros are neat