gf_data function versus structure



I erroneously hit the send button.

2013/3/14 Volker van Nek <volkervannek at gmail.com>:
> 2013/3/14 Raymond Toy <toy.raymond at gmail.com>:
>
>>> > I'm pretty sure it's necessary to distinguish the name of the
>>> > structure from the name of the function. My recommendation
>>> > is to rename the function to gf_get_data (and rename gf_set
>>> > to gf_set_data to show that it is related). Another approach is
>>> > to make the structure name a noun, so that one would write
>>> > 'gf_data(...) to make a structure. I'm less enthusiastic about
>>> > that. What do you think?
>>>
>>> gf_get_data and gf_set_data are OK by me.
>>
>>
>> Won't that break everyone's code that uses the GF functions?
>>
>> Ray

Yes. gf_set is main entry point to the GF functions. If I change the
name I can make the old gf_set to be available but it would print a
message that it is deprecated and the user is encouraged to use
gf_set_data.

The GF package is still work in progress. (In the next days I will
commit some new stuff.) And it is not part of the official
documentation. At this time there is only a pdf in share/gf. So I
think changes should be possible.

Volker