[#3479] Missing .document files for ext/ libraries — Brian Candler <B.Candler@...>

The ri documentation for zlib, strscan and iconv doesn't get built by 'make

12 messages 2004/10/06

[#3492] Re: ANN: Free-form-operators patch — Markus <markus@...>

> In message "Re: ANN: Free-form-operators patch"

15 messages 2004/10/11
[#3493] Re: ANN: Free-form-operators patch — Yukihiro Matsumoto <matz@...> 2004/10/11

Hi,

[#3495] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/12

On Mon, 2004-10-11 at 16:16, Yukihiro Matsumoto wrote:

[#3561] 1.8.2 - what can we do to help? — Dave Thomas <dave@...>

Folks:

23 messages 2004/10/26
[#3562] Re: 1.8.2 - what can we do to help? — Yukihiro Matsumoto <matz@...> 2004/10/27

Hi,

Re: Kernighan & Richie ---> prototypes ?

From: Johan Holmberg <holmberg@...>
Date: 2004-10-14 14:50:06 UTC
List: ruby-core #3520
On Thu, 14 Oct 2004, Yukihiro Matsumoto wrote:
>
> |  What is holding back a conversion of the K&R code
> |  to use prototypes ?
>
> My preference.  I like prototypes.  But I dislike the new style
> argument list, especially when the list becomes large with type
> names.
>
> 							matz.
>

Oops. I had kind of hoped for another answer.

If the current source code was functionally equivalent to using
prototypes everywhere I wouldn't have minded. But if I'm not
mistaken you actually loose a lot of type-checking now.

I just ran PC-LINT on the Ruby source and got many messages like:

   ... call to function 'SOME_FUNCTION_NAME()' not made \
       in the presence of a prototype

All in all for 511 different functions.

I thought that the K&R style of function declaration/definition was
long ago obsolete. Looking in by bookshelf I see books such as
"Writing Solid Code", "The Practice of Programming" and "The Art of
Unix Programming" all mentioning the advantages of the ANSI style.

But I realize that it is your source ;).

I just had to make my argument.
This has been one of the main things I have wondered about while
reading the source (the other thing being the almost total lack of
comments about what functions do).

/Johan Holmberg


In This Thread