[lazarus] bit fields
Sergio A. Kessler
sak at perio.unlp.edu.ar
Thu May 20 15:38:01 EDT 1999
>>function show_border() // pretty generic name
>>wich does the work of gtk_notebook_get_show_border() // wich don't exist
>>
>>then it should be:
>>function gtk_notebook_show_border()
>>or better:
>>function gtk_notebook_get_show_border()
>>
>>or something like that, no ?
>The generic name doesn't matter because with the overloading there is no
>problem, and show_border is the field name in the record. To use
>gtk_notebook_ prefix will confuses with gtk procedures.
it will not confuse, it just another accesor for a field of the struct
there is no show_border field name (because is a bit field)
check the notebook.pp example and you will see how this is used
in a bad generic way.
Sergio
More information about the Lazarus
mailing list