gmurray
1/17/2006 1:12:00 AM
This is the first that I have seen that does not follow
(what I thought was a) convention. But I was unable to find
anything in writing that stated theconvention.
Nevertheless, you might think about this.
When declaring a class or module name, prefix the Constant
name with a 'c' for class, or 'm' for module. So the wrapper
would have the name:
cPGconn
Then this would be changed from:
rb_define_method(rb_cPGconn, "close", pgconn_close, 0);
to:
rb_define_method(cPGconn, "close", pgconn_close, 0);
Being unable to see may also be related to declaring the method
public, protected, or private, as these control the access.
Is this a wrapper for postgress? What is the package name. url
where this was found?
regards,
Gerald