public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* setters and exclamation mark
       [not found] <3DC10A6300C3AEDA@stateless1.tiscali.cz>
@ 2003-01-03  0:00 ` Daniel Skarda
  2003-01-03  0:56   ` Kevin Ryde
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Skarda @ 2003-01-03  0:00 UTC (permalink / raw)
  To: guile-gtk

Hello,

  current GtkAdjustment patch posted last year (err, few days ago) revealed
guile-gtk naming inconsistency: There are many Gtk functions, one could call 
setters (-set-blahblahblah), but wrappers for these functions does NOT have
exclamation mark. On the other hand, emit-field-accessors (build-guile-gtk)
appends `!' to emitted setters.

  We can:

    1) Forget scheme naming conventions and remove `!' from created setters
       (this change would break NOT any code since setter feature has not been
       used at all)

    2) Add setter hint to define-function, which would mark function as a
       setter and build-guile-gtk would add ending `!' to such functions.

  I think everybody can imagine tedious work on second way (examine all
functions and mark all setters). Since exclamation mark should be used
uniformly, change could break a lot of code.

  So if nobody objects, I say good-bye exclamation mark and choose first way.

0.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: setters and exclamation mark
  2003-01-03  0:00 ` setters and exclamation mark Daniel Skarda
@ 2003-01-03  0:56   ` Kevin Ryde
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2003-01-03  0:56 UTC (permalink / raw)
  To: guile-gtk

Daniel Skarda <0rfelyus@ucw.cz> writes:
>
>   (this change would break NOT any code since setter feature has not been
>   used at all)

For what it's worth, there seems to be very few fields that an
application is supposed to write directly.  GtkAdjustment might even
be the only case of this.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-03  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3DC10A6300C3AEDA@stateless1.tiscali.cz>
2003-01-03  0:00 ` setters and exclamation mark Daniel Skarda
2003-01-03  0:56   ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).