Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sdaubert
Copy link
Contributor

Documentation for FFI::Pointer, FFI::Type, FFI::Type::Builtin, FFI::Type::Mapped, FFI::NativeType, FFI::StrPtrConverter.
Minor correction for FFI::AbstractMemory#put_bytes (old doc seems to be for #get_bytes).

I have some problems with documentation due to RDoc which uses variable names to guess parent class from rb_define_class or rb_define_class_under. As varibale are named "NameClass" (where "Name" is the class name), RDoc guesses parent class is NameClass instead of Name.
A typical example is FFI::Pointer. As its parent is guessed AbstractMemoryClass, no link to browse to AbstractMemory documentation page appears on Pointer page.
I think this is harmful for documentation quality and for easiness to use.

Here is my question : may I change name variables in my future work by using a ruby-like naming style (rbffi_cName instead of rbffi_NameClass by example).

  FFI::Type::Mapped, FFI::NativeType, FFI::StrPtrConverter.
Minor correction for FFI::AbstractMemory#put_bytes (old doc seems to
  be for #get_bytes).
ghost pushed a commit that referenced this pull request Sep 20, 2011
Documentation for Pointer, Type, Type::Builtin, Type::Mapped, NativeType, StrPtrConverter
@ghost ghost merged commit ee39d42 into ffi:master Sep 20, 2011
skull-squadron added a commit to skull-squadron/ffi that referenced this pull request May 15, 2023
@skull-squadron
Copy link

Lol oops I meant closes libvips/#155. Nothing to see here, move along. :P

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants