newt library bindings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

newt library bindings

Brad Watson
I humbly submit GST c-bindings for the redhat newt library (a terminal-based window and widget library) for review.

Kind regards,

Brad Watson








_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

=?utf-8?q?newt.st?= (44K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: newt library bindings

Paolo Bonzini
> I humbly submit GST c-bindings for the redhat newt library (a
> terminal-based window and widget library) for review.

Always appreciated, but I think that first you should work towards
making the ncurses bindings more object-oriented.

As they stand now, they are a wonderful proof of concept, but they are
not ready to go into the distribution.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: newt library bindings

Brad Watson
In reply to this post by Brad Watson
Ok.  Ideas anyone ?

----- Original Message ----
From: Paolo Bonzini <[hidden email]>
To: GNU Smalltalk <[hidden email]>; Brad Watson <[hidden email]>
Sent: Thursday, October 26, 2006 3:40:33 AM
Subject: Re: newt library bindings

> I humbly submit GST c-bindings for the redhat newt library (a
> terminal-based window and widget library) for review.

Always appreciated, but I think that first you should work towards
making the ncurses bindings more object-oriented.

As they stand now, they are a wonderful proof of concept, but they are
not ready to go into the distribution.

Paolo







_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Re: newt library bindings

Paolo Bonzini
In reply to this post by Brad Watson

> mvwaddch: aPoint ch: aChar
>     ^self mvaddchPrimitive: (aPoint y) x: (aPoint x) ch: aChar!
>  
No need for the "Primitive" part.  (And if aPoint is not the first
parameter, BTW, I'd call its keyword "at: aPoint")
> mvwaddchPrimitive: anInt1 x: anInt2 ch: aChar
>     <cCall: 'mvaddch' returning: #int args: #(#self #int #int #char )>!
>  
Likewise, and you are actually calling mvwaddch of course.

Otherwise good.  Don't be afraid to post this kind of question publicly.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk