wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wxruby-dev] New version of my prototype


From: Kevin Smith
Subject: [Wxruby-dev] New version of my prototype
Date: 14 May 2003 22:23:40 -0700

I have uploaded a newer version of my wxRuby template prototype:
  http://www.qualitycode.com/code/wxRuby-Kevin-0.2.tar.gz

As before, the .so was built for Debian "Sarge" Linux, the Makefile has
been manually tweaked, and I don't actually expect anyone to be able to
compile or run any of the code.

This version supports optional parameters. Here is a sample template
declaration of a method that has two required parameters and one
optional parameter:
  //$$ METHOD append: void Append (int, wxString, wxString?)

>From Ruby, you can pass or omit the last String parameter. If you omit
it, the underlying C++ function will be called without the parameter, so
the wxWindows default will be used. You can look at the wxRuby.cpp file
(that was automatically generated from wxRuby.t by the wxpp.rb
preprocessor) to see how this works.

I still have quite a few improvements to make before starting to
integrate this approach into the "official" wxRuby sources. I will
probably change the syntax of the //$$ commands; I need to add templates
for the constructors, and I need to figure out what to put in the .h vs.
.cpp files. Plus whatever else I think of along the way.

I'll probably release a couple more prototypes, and then start making
concrete proposals. As always, I welcome questions, comments, praise,
criticisms, or any other feedback.

Thanke,

Kevin







reply via email to

[Prev in Thread] Current Thread [Next in Thread]