From: phlip Date: 2008-07-06T13:46:38+09:00 Subject: Re: Ruby C API Question Seebs wrote: > Now, you may think that the semantic differences don't come up very often, > and in some code this may be correct. However, there really is a difference; > it is not "just a style thing". Given a K&R-compatible C implementation, this is indeed not just a style thing: fsdbm_s_open(argc, argv, klass) int argc; VALUE *argv; VALUE klass; I suspect it might push the 3 arguments as machine words, even if one were narrow, like a char. Gods only know what it could do with the pointer - and a VALUE is a union of pointers with scalars. But I forget how much prototyping is required to get a C to pass chars as chars. Probably enough to invoke the "as if" rule. But because I know I _don't_ know this, I would not play games with method calls into Ruby's raw C source! -- Phlip