[#72642] Advantages of Symbols over constants — Marek Janukowicz <childNOSPAM@...17.ds.pwr.wroc.pl>
On Sunday, 1 June 2003 at 22:00:23 +0900, Marek Janukowicz wrote:
One of my concerns with symbols is they spring into exsistence on their own,
[#72645] thread-unsafe stuff: could you summarize? — Wojciech Kaczmarek <schatten@...>
I'd be glad to see a short summary of what I should be aware of when writing
[#72685] How to structure a program for unit testing — John Johnson <jj5412@...>
The time has come. I'm tired of that unsure feeling when I'm about to
[#72717] Unit Testing Style — Eric Schwartz <emschwar@...>
I know I should have written my tests first, but I didn't, so now I'm
[#72729] CALL FOR ASSISTANCE — "MR.IKE COLLINS" <ikecollins@...>
MR.IKE COLLINS
[#72732] case of sub! not working — Ian Macdonald <ian@...>
Hi,
Ian Macdonald wrote:
On Tue 03 Jun 2003 at 10:21:43 +0900, Joel VanderWerf wrote:
----- Original Message -----
> I'll take a stab at it. I can't promise that
[#72735] setuid/setgid ruby scripts — Wesley J Landaker <wjl@...>
Hey folks,
[#72761] Ruby Weekly News — Dave@...
[#72764] file I/O: how can I disable auto-convert of the 2-byte sequence 0x0D, 0x0A into a single byte '\n'? — "Polscheit, Frank" <frank.polscheit@...>
Hi,
[#72771] Ruby install question — Jim Freeze <jim@...>
[#72778] ruby-dev summary 20201 - 20315 — Kazuo Saito <ksaito@...>
Hi all,
On Wed, Jun 04, 2003 at 12:36:13AM +0900, Kazuo Saito wrote:
On Wed, Jun 04, 2003 at 06:50:39PM +0900, Mauricio Fern疣dez wrote:
[#72782] sent e-mail — "James McCall" <jmccall64@...>
you sent an e-mail on 29 april 2002 at 11:02 pm, can you remember where that
[#72799] Test::Unit::MockObject not working — "Shashank Date" <sdate@...>
....so I downloaded the latest version of test-unit-mock from RAA:
[#72804] ruby-1.8.0 (cvs) build failed on HP-UX 11.11 — Wai-Sun Chia <waisun.chia@...>
Version: Ruby 1.8.0 20030522
Hi,
[#72818] RCR: Enhancing matrix.rb — Michael Neumann <mneumann@...>
Hi,
Hi,
[#72842] remove_method question — Daniel Berger <djberge@...>
Hi all,
[#72849] Ruby 1.8.0 — gm@... (George Moschovitis)
Hi everyone,
[#72854] Ruby web hosting survey. — "Warren Brown" <wkb@...>
All,
[#72863] ios.gets doesn't seem to work as advertised — RichardLMuller@... (Richard)
I've got the following script in a Win2000SP3 environment running Ruby
[#72883] Ruby-SWIG question: wrapping function objects with blocks — Christian Szegedy <szegedy@...>
I am trying to use SWIG to generate Ruby wrapper for a
[#72892] Answer on 'lists.bttr.org unreachable?' — "Josef 'Jupp' Schugt" <jupp@...>
Hi!
[#72894] Ruby 1.8.0 net/http bug — Urban Nilsson <urban@...>
I tried the following example code:
[#72907] Syck 0.35 + YAML.rb 0.60 -- the 1st stable release — why the lucky stiff <ruby-talk@...>
Pleased to announce:
why the lucky stiff wrote:
On Fri, Jun 06, 2003 at 06:15:58AM +0900, why the lucky stiff wrote:
Richard Zidlicky (rz@linux-m68k.org) wrote:
On Sat, Jul 05, 2003 at 09:17:18AM +0900, why the lucky stiff wrote:
Could your segmentation fault be due to the same problem as in the
[#72908] Problem with "require" stmt in "test-first " tutorial — RLMuller@... (Richard)
Hi All,
Hi Nobu and Simon,
Hi everybody,
Richard (RLMuller@comcast.net) wrote:
on 6/9/03 10:28 AM, Gour at gour@mail.inet.hr wrote:
John Johnson (jj5412@earthlink.net) wrote:
[#72912] Syck / Yaml example — Shashank Date <shanko_date@...>
hello _why,
[#72922] ANN: ruby-goto, your evil for the evening — Ryan Pavlik <rpav@...>
OK, so I was feeling evil last week sometime. Some people were claiming
On Fri, 2003-06-06 at 17:13, Ryan Pavlik wrote:
[#72940] VAPOR 0.06, Transparent Persistence to PostgreSQL — "Oliver M. Bolzer" <oliver@...>
Hi!
On Fri, 06 Jun 2003 13:44:43 +0200, Anders Borch wrote:
[#72958] Pkg for getting web pages — Jim Freeze <jim@...>
Hi:
[#72972] Using SciTE 1.53 on Windows — Gert Kok <qawaly@...>
Can version 1,53 be used instead of the 1.41 that comes with the Windows
[#72975] join block — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
Simon Strandgaard wrote:
[#72985] What should "class ... end" and "def ... end" return? — itsme213@... (you CAN teach an old dog ...)
Are they expressions? If not, why not?
[#72986] multiple blocks or proc arguments to method — itsme213@... (you CAN teach an old dog ...)
I was trying to write a collect_if method:
[#72988] Any notification mechanism for Ruby questions — itsme213@... (you CAN teach an old dog ...)
Is this the best place to post Ruby questions? Is ruby-talk better? Do
[#73032] raa-install feature request — "Dmitry V. Sabanin" <sdmitry@...>
Hello!
[#73047] dia2code-ruby-0.8.1 (unofficial) — "Dmitry V. Sabanin" <sdmitry@...>
Hi!
[#73081] requiring standard libs with save level 1 — Eugene Scripnik <Eugene.Scripnik@...>
I've set up new version of Ruby from CVS and my programs failed to work.
Hi,
Yukihiro Matsumoto wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
ts wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
ts wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
ts wrote:
[#73119] Is Ruby's parse tree accessible (prior to evaluation) — itsme213@... (you CAN teach an old dog ...)
Is there any hook to get at the parsed-tree equivalent of Ruby
[#73134] tcltklib does not get compiled. — John Fletcher <J.P.Fletcher@...>
I have installed ruby 1.6.7 on two computers using Red Hat 8.0 Linux.
[#73148] OT: Regexp question — Dominik Werder <dwerder@...>
Hi all,
Hello Dominik,
--- Laurent Sansonetti <laurent@datarescue.be> wrote:
[#73169] how to contribute? — Koen Vervloesem <koen.vervloesem@...>
Hi,
[#73172] FAQ for comp.lang.ruby — hal9000@...
RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby! (Revised 2003-1-7)
[#73203] Re: raa-install: package list update? — "Hal E. Fulton" <hal9000@...>
----- Original Message -----
[#73215] Rubyx (provisionally named) linux distro. Made by and run by Ruby — Andrew Walrond <andrew@...>
I have developed a little script which creates a simple linux distro
il 11 Jun 2003 13:59:17 -0600, Eric Schwartz <emschwar@pobox.com> ha
on 6/11/03 4:35 PM, gabriele renzi at surrender_it@rc1.vip.lng.yahoo.com
[#73216] Re: Stack Frames, Functions and Variables. — "Robert Klemme" <bob.news@...>
The Wiki link is
[#73236] PDF Documents from Native Ruby — Austin Ziegler <austin@...>
So I'm about 1500 messages behind because I've been deep in programming
[#73238] fork and Tk problem — Richard Zidlicky <rz@...68k.org>
Hi,
[#73244] Re: Problem with "Daemon not connected" — "Veitch, Andy" <AVeitch@...>
[#73253] amrita question — Pierre Baillet <oct@...>
Hi,
[#73260] Multiple Initialize methods? — "Nick" <nick.robinson@...>
Hi,
Hi everybody,
On 6/19/2003 3:46 AM, in article
On Thu, Jun 19, 2003 at 09:43:19PM +0900, Sam Griffith wrote:
[#73283] Ruby advantages over Perl — Marek Janukowicz <childNOSPAM@...17.ds.pwr.wroc.pl>
In article <slrnbefclg.6r9.childNOSPAM@child.t9.ds.pwr.wroc.pl>,
> 3) any type of object can be used as a key in a Ruby hash (Perl can
On Thu, 12 Jun 2003 17:56:02 +0900
Jason Creighton wrote:
On Jun 13, Tom Clarke wrote:
----- Original Message -----
On Thu, 12 Jun 2003 22:46:46 +0100
[#73292] DATA object and processes; unexpected problem — Andrew Walrond <andrew@...>
I have have several forked processes simultateously accessing the data
[#73305] HTML -> list of sentences? (semi-impossible task) — "Hal E. Fulton" <hal9000@...>
Hello, all.
[#73339] ruby-dev summary #20316-20338 — TAKAHASHI Masayoshi <maki@...>
Hello all,
[#73356] does each work on a copy? — Rasputin <rasputin@...>
[#73365] socket problem on Windows? — "Craig Demyanovich" <demmer12@...>
Hello,
[#73372] Reason for implicit block syntax ? — itsme213@... (you CAN teach an old dog ...)
What is the reason for the implicit block in Ruby invocations?
[#73377] src/yaml.y.rb:210: warning: ambiguous first argument; make sure — ahoward <ahoward@...>
On Thursday 12 June 2003 01:23 pm, ahoward wrote:
[#73387] Regex: undocumented feature? — Joel VanderWerf <vjoel@...>
[#73394] How to get an exit code from SystemExit exception — "Gennady" <gfb@...>
I catch SystemExit exception raised as a result of "exit <status>" =
[#73395] Question on regexp — John Johnson <jj5412@...>
While all the regexp experts have their ears perked up:
[#73403] Confused about to_s in Ruby / irb — itsme213@... (you CAN teach an old dog ...)
I wish to control the default display of my objects, and thought to_s
[#73420] Interactive Console Program with Tab-Completion — kapheine@... (Zachary P. Landau)
Hello,
[#73463] Hispeed String concat — Dominik Werder <dwerder@...>
What is the fastest way to add many small Strings to a big buffer?
Saluton!
On Sat, Jun 14, 2003 at 03:46:08AM +0900, Josef 'Jupp' Schugt wrote:
[#73476] regex interpolation (in ruby from CVS) — mike@... (Mike Stok)
I have been experimenting with building regular expressions from
[#73484] Blogging Software Created with Ruby — info@... (Atlantic Blue)
Is there a blogging software created using the Ruby scripting
[#73503] RaaInstallInRuby petition — ptkwt@...1.aracnet.com (Phil Tomson)
----- Original Message -----
In article <02e301c331e1$ab183980$0300a8c0@austin.rr.com>,
My $0.02:
[#73555] I need a code beautifier or formatter — joaopedrosa@... (Joao Pedrosa)
Hello,
On Sat, Jun 14, 2003 at 10:01:36PM +0900, Joao Pedrosa wrote:
On Sat, 14 Jun 2003, Michael Neumann wrote:
[#73567] Re: I need a code beautifier or formatter — Joao Pedrosa <joaopedrosa@...>
Hi,
"Joao Pedrosa" <joaopedrosa@myrealbox.com> wrote in message
[#73590] problems with regex.h in an extension module — Michael Brailsford <brailsmt@...>
I am working on embedding ruby into a C++ application but I cannot get
[#73600] Get songtitle from Winamp — calvin8@... (Andi Scharfstein)
Hi,
-----BEGIN PGP SIGNED MESSAGE-----
It's a Win32API convention meaning "Window Handle".
-----BEGIN PGP SIGNED MESSAGE-----
On Sunday 15 June 2003 9:34 am, Daniel Carrera wrote:
-----BEGIN PGP SIGNED MESSAGE-----
You all know this already, but ...
on 6/15/03 12:47 PM, Yura at yura@opmr.com wrote:
[#73628] question on Struct and class_eval — Markus Jais <info@...>
Hello
[#73640] Standardizing Installers — Tom Clarke <tom@...2i.com>
I was thinking about some of the issues raised involving ruby libraries
> So is it time to require that RAA packages conform to these rules?
[#73653] ParseExtension — nobu.nokada@...
Hi,
[#73663] /BEGIN/ .. /END/ file reading — Wild Karl-Heinz <kh.wild@...>
hello
> A range operator with a regexp works like a flip flop (bistable
[#73667] Re: update Var if Var==nil — "Woodhouse, Mike (ANTS)" <mike.woodhouse@...>
Would
[#73680] Multiline comments? — "Christoph Tapler" <christoph.tapler@...>
I'm new to Ruby and I'm wondering that there is no possibility to write
----- Original Message -----
----- Original Message -----
----- Original Message -----
[#73723] /^attr(?:_reader|_writer)*$/ - possible RCR? — ahoward <ahoward@...>
[#73756] File.expand_path with files beginnig with ~ (tilde) on Windoze — grzegorz@... (Grzegorz Chrupala)
Hi,
Grzegorz Chrupala wrote:
[#73773] Sokoban — Masao Mutoh <mutoh@...>
Hi,
[#73781] editor / ide recommentation on Windows — itsme213@... (you CAN teach an old dog ...)
What editor / ide would you recommend for serious Ruby work on
On Wed, 18 Jun 2003 01:45:11 +0900
On Sat, 21 Jun 2003 04:23:39 +0900, Warren Brian Noronha
> What would be really sweet is full refactoring Ruby support inside Eclipse...
[#73787] Array#push(empty array expanded) => no exception — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
This strange behavier really surprised me..
[#73821] European Ruby Conference — "Hal E. Fulton" <hal9000@...>
I don't think I've mentioned this before, but I
Hal E. Fulton wrote:
I am trying to learn some of the functions within
Hi,
[#73831] Stability of Marshaling format — Robert Feldt <feldt@...>
Hi,
Hal E. Fulton <hal9000@hypermetrics.com> wrote:
[#73841] Re: File.expand_path with files beginnig with ~ (tilde) on Windoze — "J.Hawkesworth" <J.Hawkesworth@...>
I've allways understood the ~ feature in some unix shells as being a
[#73843] re-open a class --> re-open a method? — itsme213@... (you CAN teach an old dog ...)
Ruby's ability to re-open a class is great! Among other things it
[#73844] switching multiple interfaces of an object — Mauricio Fern疣dez <batsman.geo@...>
On Wed, 18 Jun 2003, Mauricio [iso-8859-1] Fern疣dez wrote:
On Thu, Jun 19, 2003 at 12:35:12AM +0900, ahoward wrote:
[#73847] Tk canvas widget Id's — John Fletcher <J.P.Fletcher@...>
Is it possible to access the Id's of objects declared within a Tk canvas
[#73867] Re: Test::Unit GUI — "Berger, Daniel" <djberge@...>
> -----Original Message-----
Berger, Daniel [mailto:djberge@qwest.com] wrote:
nathaniel@NOSPAMtalbott.ws (nathaniel@NOSPAMtalbott.ws) wrote:
Gour [mailto:gour@mail.inet.hr] wrote:
[#73878] syck/yaml fail unit test — Guillaume Marcais <guillaume.marcais@...>
I get 2 failures with the unit tests within syck (0.35, from tarball).
[#73892] question on blocks and iterators — Markus Jais <info@...>
hello
[#73896] Code generation and state machines — Zellyn Hunter <ruby-list@...>
Hi folks,
[#73915] Thread Problems - Random Segfaults — Stefan Arentz <stefan.arentz@...>
[#73924] Re: TCP/IP protocol and Net::HTTP — "J.Hawkesworth" <J.Hawkesworth@...>
Works for me too.
I am beginning to wonder if this problem arises from the MacOS X
[#73941] Re: embed Ruby/TK app in a web page — "J.Hawkesworth" <J.Hawkesworth@...>
John,
[#73943] collect info about ruby-api — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
I have long been longing for a good description of ruby C api.
[#73956] Weird Fixnum division — Tore Haug-Warberg <haugwarb@...>
Hi,
[#73974] How to install — Steve Tuckner <STUCKNER@...>
Recently, I downloaded eclipse for windows (version 2.1) and then got
[#73977] Production Code with Ruby — place4oracle@... (Warren)
Hi,
[#73991] rescuing errors.. catch-all — Daniel Bretoi <lists@...>
Hi,
Hi,
On Fri, Jun 20, 2003 at 09:56:04AM +0900, Yukihiro Matsumoto wrote:
[#73997] reading ruby source — "Shashank Date" <sdate@...>
I'm making a serious attempt to read and understand the C-source which
[#74006] In 1.8.0 nil.to_s is not the same as "" — han.holl@... (Han Holl)
Hi,
Hi,
[#74039] WxRuby status? — ptkwt@...1.aracnet.com (Phil Tomson)
Things are progressing great. Kevin Smith has taken the development
-----BEGIN PGP SIGNED MESSAGE-----
Daniel Carrera (dcarrera@math.umd.edu) wrote:
-----BEGIN PGP SIGNED MESSAGE-----
[#74045] Re: require xyz: How to set search path? URI-like ability? — "Tim Hunter" <cyclists@...>
On Fri, 20 Jun 2003 23:11:56 +0000, Its Me wrote:
[#74068] Re: reading text line — "Shashank Date" <sdate@...>
"Dan" <falseflyboy@yahoo.comNONO> wrote in message
[#74070] How to test if a file exists? — Daniel Carrera <dcarrera@...>
-----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE-----
Daniel Carrera wrote:
> In an ideal world, I suppose I should follow my way up the inheritance
[#74081] Euruko 2003 (1st European Ruby Conference) news — Mauricio Fern疣dez <batsman.geo@...>
[#74096] Exasperated with ruby/tk - anybody successfully using it? — "Richard Browne" <richb@...>
General question: Is ruby/tk still being maintained in 1.7/1.8 or is it
[#74104] String#decorate — martindemello@... (Martin DeMello)
When chaining methods, it'd be neat to have something that was passed
[#74129] REXML and double, rather than single quotes — Ian Macdonald <ian@...>
Hi,
[#74133] unit testing — Koen Vervloesem <koen.vervloesem@...>
Hi,
[#74139] Euruko 2003 (1st European Ruby Conference) Over — Mauricio Fern疣dez <batsman.geo@...>
[#74156] Marshal bug? — Anders Borch <spam@...>
Hi!
Anders Borch wrote:
--- Dave Thomas <dave@pragprog.com> wrote:
Hello everyone;
On Mon, Jun 23, 2003 at 11:12:01PM +0900, David D'Andrea wrote:
[#74157] File upload and mod-ruby — gm@... (George Moschovitis)
Hello everybody,
[#74189] Array#unshift() zero arguments — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
[#74198] Parallel Assignment # a,b=c,d=1,2 — D T <tran55555@...>
We can write:
OK, I guess:
Hi,
[#74202] Block Scope Statement in the Pickaxe — "Robert Klemme" <bob.news@...>
[#74205] can't find appropriate regexp — "Patrick Zesar" <jonnypichler@...>
spamassassin blocked my previous post :-((((
I got wrong again, finally, I test and test and come out this one:
> str = <<'EOF'
You are welcome.
[#74206] Standard type conversion mechanism — Ryan Pavlik <rpav@...>
OK, I'm posting this because a few people on #ruby-lang thought it
[#74208] Problem with local DRb on OS X — John Platte <john.platte@...>
Rubyers & rubyees:
[#74237] ncurses-ruby on cygwin — culley harrelson <culley@...>
I am trying to install ncurses-ruby on cygwin, which all the docs
On 24 Jun 2003, culley harrelson wrote:
[#74239] Warning error in YAML — "Useko Netsumi" <REMOVE_THISusenets@...>
test_yaml.rb:
>>>>> "U" == Useko Netsumi <REMOVE_THISusenets@nyc.rr.com> writes:
[#74254] Re: Decimal builtin? — "Pe, Botp" <botp@...>
[#74279] Ruby Developer's Guide - hurt book sale — dennis@... (Dennis Sutch)
Syngress Publishing is having a hurt book sale. Per Syngress
On 24 Jun 2003, at 22:28, Dennis Sutch wrote:
I never understood why shipping from the USA is so extrem expensive.
[#74296] Concatenating Hash's — David Landrith <dlandrith@...>
What is the fastest way to concatenate two hash tables?
--- David Landrith <dlandrith@mac.com> wrote:
[#74305] ruby 1.8.0-preview3 build errors — Aredridel <aredridel@...>
I get this:
Hi,
[#74320] Another Run Time Evaluation Q: — "Orion Hunter" <orion2480@...>
I am fiddling around with the eval() function, and loading information at
[#74347] help needed: extending ruby — "Shashank Date" <sdate@...>
I'm trying out the following example from
[#74355] another problem with regular expression — "Rob" <robson@...>
I have an array with the following elements:
[#74379] protect parents from children — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
I fell into these pitfalls yesterday.. that a child was modifying a parent!
[#74394] Text parsing example code — Dominik Werder <dwerder@...>
Hi rubyists,
[#74413] Ruby/Java integration through JNI: working implementation — Mauricio Fern疣dez <batsman.geo@...>
Yet An other JRuby ?? :-)
D T wrote:
[#74454] API for Ruby/Java integration through JNI (feedback needed!) — Mauricio Fern疣dez <batsman.geo@...>
il Thu, 26 Jun 2003 03:34:10 +0900, Mauricio Fern疣dez
[#74465] DBD for Oracle9i — Jim Cain <list@...>
Hi all. I was looking for a Ruby interface to 9i that would handle all
Jim Cain wrote:
Michael Neumann <mneumann@ntecs.de> writes:
KUBO Takehiro wrote:
Jim Cain <list@jimcain.us> writes:
KUBO Takehiro wrote:
Michael Neumann wrote:
[#74478] RPM for 1.8.0 — John Carter <john.carter@...>
I would like to get / build a Mandrake 9.1 RPM for Ruby-1.8.0 Preview 3
On Wed, 2003-06-25 at 19:44, John Carter wrote:
Aredridel's .spec file was a good start. It seems to be a RedHat rather
Hi,
Removing the --enable-shared stops the following crash...
[#74506] String#split(' ') and whitespace (perl user's surprise) — mike@... (Mike Stok)
I have to confess that I use a lot of Perl, and some of its idioms are
On Thursday 26 June 2003 6:14 am, Mike Stok wrote:
>>>>> "W" == Wesley J Landaker <wjl@icecavern.net> writes:
In article <200306260741.40418.wjl@icecavern.net>,
Bug ? May-be / Maybe not ...
On Thursday 26 June 2003 8:57 am, D T wrote:
> I think you want strip instead of squeeze:
[#74566] Who's going to OSCON? — ptkwt@...1.aracnet.com (Phil Tomson)
OK, OSCON is coming up in a couple of weeks and I'd like to figure out if
[#74573] Using & for arrays of objects — "Krishna Dole" <kpdole@...>
Hi,
[#74575] Is there a Unit test tool distributed with 1.6? — gsemones@... (Guerry Semones)
I know there are several unit test tools (runit, lapidary, etc.) that
[#74579] why can't I use $3somevar for global variable in ruby 1.8.0? — Donglai Gong <donglai@...>
Hi, I'm new to Ruby programming and I just upgraded from 1.6.8 to 1.8.0
-----BEGIN PGP SIGNED MESSAGE-----
Hi,
[#74587] method overloading? — Donglai Gong <donglai@...>
Is there a way to implement method overloading in ruby? Naively I just
-----BEGIN PGP SIGNED MESSAGE-----
[#74620] \s in regex — internetletter@... (s moon)
what I want is to remove beginning and trailing spaces from lines.
[#74651] Re: problem install 1.6.8/1.8 on OS X 10.2 - success — Gary.Palmer@...
[#74667] Opinions on ZigZag? — "Hal E. Fulton" <hal9000@...>
I've been reading about ZigZag again... in some
[#74685] MR PATRICK LOUCO — "PATRICK LOUCO" <patkiceloco@...>
Dear Friend,
[#74690] druby vs CORBA vs java-RMI — gabriele renzi <surrender_it@...1.vip.lng.yahoo.com>
Is there some paper (possibly in english) somewhere about a comparison
[#74691] Swig and the STL — Michael Brailsford <brailsmt@...>
I am having troubles with swig's conversion of STL to ruby. Mainly ruby
[#74702] Slides from my talk are up on rubyhacker.com — "Hal E. Fulton" <hal9000@...>
I was pleased to attend the European Ruby Conference
----- Original Message -----
On Sat, Jul 05, 2003 at 03:50:02PM +0900, Hal E. Fulton wrote:
[#74706] Help with UnboundMethod#bind error — gabriele renzi <surrender_it@...1.vip.lng.yahoo.com>
Hi gurus and nubys,
Hi,
Hi,
On 30 Jun 2003 at 17:18, Yukihiro Matsumoto wrote:
Hi,
On 2 Jul 2003 at 17:14, nobu.nokada@softhome.net wrote:
>>>>> "P" == Pit Capitain <pit@capitain.de> writes:
On 5 Jul 2003 at 20:45, ts wrote:
>>>>> "P" == Pit Capitain <pit@capitain.de> writes:
On 6 Jul 2003 at 21:23, ts wrote:
On Sun, Jul 06, 2003 at 11:51:04PM +0900, Pit Capitain wrote:
[#74717] Re: Message catalogs (I18N) overnight hack... — "Hal E. Fulton" <hal9000@...>
----- Original Message -----
----- Original Message -----
[#74724] ruby tutorial — "Pe, Botp" <botp@...>
Hi Friends,
[#74730] Memory behavior of String#dup — "Robert Klemme" <bob.news@...>
[#74731] OT: Status Display — Juergen Lang <j-l@...>
Hello,
[#74747] Editor like Textpad on Linux? — Dominik Werder <dwerder@...>
Hello,
[#74768] dynamic object creation — Aryeh Friedman <aryeh@...>
If I have something like this:
On Tue, Jul 01, 2003 at 01:01:25AM +0900, Aryeh Friedman wrote:
Brian Candler wrote:
[#74781] Re: Does Threading work properly? — kingsley@...
Hiya
Re: ruby-1.8.0 (cvs) build failed on HP-UX 11.11
Here you go..
Yukihiro Matsumoto wrote:
> Hello,
>
> In message "Re: ruby-1.8.0 (cvs) build failed on HP-UX 11.11"
> on 03/06/04, Wai-Sun Chia <waisun.chia@hp.com> writes:
>
> |> Could you show us ext/socket/mkmf.log ?
>
> In addition, show us lines from 484 to 490 of
> </usr/include/sys/socket.h>?
>
> matz.
>
--
a8888b.
d888888b.
8P"YP"Y88 Wai-Sun "Squidster" Chia
8|o||o|88 Sr. Technical Consultant (RHCE)
8' .88 OpenSource Development
8`._.' Y8. Consulting & Integration
d/ `8b. HP Services Malaysia
dP . Y8b.
d8:' " `::88b
d8" 'Y88b
:8P ' :888
8a. : _a88P
._/"Yaa_: .| 88P|
\ YP" `| 8P `.
/ \.___.d| .'
`--..__)8888P`._.'
"Fear the Penguins!"
Attachments (1)
/* @(#) socket.h $Date: 2001/04/16 11:56:07 $Revision: r11.11/2 PATCH_11.11 (PHNE_23645) */
/*
* BEGIN_DESC
*
* File: socket.h Date: 12/2/1998
* @(#)
*
* Purpose:
* Definitions related to sockets: types, address families, options.
*
* Classification: Release to Release Consistency Req:
* <<please select one of the following:>>
* kernel subsystem private none
* kernel private none
* kernel 3rd party private limited source
* public binary & source
*
* BE header: yes
*
* Shipped: yes
* /usr/include/sys/socket.h
* /usr/conf/sys/socket.h
*
* <<please delete the following note if this is a "public" header>>
* NOTE:
* This header file contains information specific to the internals
* of the HP-UX implementation. The contents of this header file
* are subject to change without notice. Such changes may affect
* source code, object code, or binary compatibility between
* releases of HP-UX. Code which uses the symbols contained within
* this header file is inherently non-portable (even between HP-UX
* implementations).
*
* END_DESC
*/
#ifndef _SYS_SOCKET_INCLUDED /* allow multiple includes of this file */
#define _SYS_SOCKET_INCLUDED /* without causing compilation errors */
/*
* Copyright (c) 1982, 1985, 1986 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* socket.h 7.3 (Berkeley) 6/27/88
*/
#include <sys/stdsyms.h>
#ifdef _INCLUDE_XOPEN_SOURCE_EXTENDED
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
/*
* Types
*/
#ifndef _CADDR_T
# define _CADDR_T
typedef char *caddr_t;
#endif /* _CADDR_T */
#ifndef _SA_FAMILY_T
#define _SA_FAMILY_T
typedef unsigned short sa_family_t;
#endif /* ! _SA_FAMILY_T */
/*
* Types of sockets
*/
#define SOCK_STREAM 1 /* stream socket */
#define SOCK_DGRAM 2 /* datagram socket */
#define SOCK_RAW 3 /* raw-protocol interface */
#define SOCK_RDM 4 /* reliably-delivered message */
#define SOCK_SEQPACKET 5 /* sequenced packet stream */
/*
* Option flags per-socket.
*/
#define SO_DEBUG 0x0001 /* turn on debugging info recording */
#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */
#define SO_REUSEADDR 0x0004 /* allow local address reuse */
#define SO_KEEPALIVE 0x0008 /* keep connections alive */
#define SO_DONTROUTE 0x0010 /* just use interface addresses */
#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */
#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */
#define SO_LINGER 0x0080 /* linger on close if data present */
#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */
#define SO_REUSEPORT 0x0200 /* allow local address & port reuse */
#define SO_GETIFADDR 0x0400 /* HP: save the loc IP addr for inb UDP packets */
#define SO_PMTU 0x0800 /* HP: advise to use PMTU discovery */
#define SO_INPCB_COPY 0x1000 /* HP: local copy of inpcb */
/*
* Additional options, not kept in so_options.
*/
#define SO_SNDBUF 0x1001 /* send buffer size */
#define SO_RCVBUF 0x1002 /* receive buffer size */
#define SO_SNDLOWAT 0x1003 /* send low-water mark */
#define SO_RCVLOWAT 0x1004 /* receive low-water mark */
#define SO_SNDTIMEO 0x1005 /* send timeout */
#define SO_RCVTIMEO 0x1006 /* receive timeout */
#define SO_ERROR 0x1007 /* get error status and clear */
#define SO_TYPE 0x1008 /* get socket type */
#define SO_SND_COPYAVOID 0x1009 /* avoid copy on send*/
#define SO_RCV_COPYAVOID 0x100a /* avoid copy on rcv */
#define SO_PROTOTYPE 0x100b /* assign protocol for RAW sockets */
#define SO_DISTRIBUTE 0x100c /* distribute UDP datagrams to */
/* multiple streams - internal use */
/* only */
#define SO_GET 1 /* Get socket option for Streams TCP/IP */
#define SO_SET 2 /* Set socket option for Streams TCP/IP */
/*
* Structure used for manipulating linger option.
*
* if l_onoff == 0:
* close(2) returns immediately; any buffered data is sent later
* (default)
*
* if l_onoff != 0:
* if l_linger == 0, close(2) returns after discarding any unsent data
* if l_linger != 0, close(2) does not return until buffered data is sent
*/
struct linger {
int l_onoff; /* 0 = do not wait to send data */
/* non-0 = see l_linger */
int l_linger; /* 0 = discard unsent data */
/* non-0 = wait to send data */
};
/*
* Level number for (get/set)sockopt() to apply to socket itself.
*/
#define SOL_SOCKET 0xffff /* options for socket level */
/*
* Address families.
*/
#define AF_UNSPEC 0 /* unspecified */
#define AF_UNIX 1 /* local to host (pipes, portals) */
#define AF_INET 2 /* internetwork: UDP, TCP, etc. */
#define AF_IMPLINK 3 /* arpanet imp addresses */
#define AF_PUP 4 /* pup protocols: e.g. BSP */
#define AF_CHAOS 5 /* mit CHAOS protocols */
#define AF_NS 6 /* XEROX NS protocols */
#define AF_NBS 7 /* nbs protocols */
#define AF_ECMA 8 /* european computer manufacturers */
#define AF_DATAKIT 9 /* datakit protocols */
#define AF_CCITT 10 /* CCITT protocols, X.25 etc */
#define AF_SNA 11 /* IBM SNA */
#define AF_DECnet 12 /* DECnet */
#define AF_DLI 13 /* Direct data link interface */
#define AF_LAT 14 /* LAT */
#define AF_HYLINK 15 /* NSC Hyperchannel */
#define AF_APPLETALK 16 /* Apple Talk */
#define AF_OTS 17 /* Used for OSI in the ifnets */
#define AF_NIT 18 /* NIT */
#define AF_VME_LINK 19 /* VME backplane protocols */
#define AF_KEY 20 /* IPSec PF_KEY protocol */
#define AF_POLICY 21 /* IPSec PF_POLICY protocol */
#define AF_INET6 22 /* IPv6 protocol */
#define AF_MAX 23
/* Valid values for the "how" argument in the shutdown() function.
*/
#define SHUT_RD 0 /* Disables further receive operations*/
#define SHUT_WR 1 /* Disables further send operations */
#define SHUT_RDWR 2 /* Disables further send and receive
* operations
*/
/*
* Unix98 type used for certain objects in X/Open sockets APIs
* whose size will not grow with the architecture, for example
* socket address length.
*
* We choose a definition that is consistent with the Unix95
* profile. However, in future implementations, we may choose
* to limit the size to 32 bits in both 32-bit and 64-bit data
* models.
*/
typedef size_t socklen_t;
#ifndef _XOPEN_SOURCE_EXTENDED
/*
* Valid values for the "flags" argument in sendfile()/sendpath().
*/
#define SF_DISCONNECT 1 /* Disables further sends and receives */
#endif /* !_XOPEN_SOURCE_EXTENDED */
#if defined(_XOPEN_SOURCE_EXTENDED) && !defined(_KERNEL)
/*
* Structure used by kernel to store most
* addresses (CASPEC/1170).
*/
struct sockaddr {
sa_family_t sa_family; /* address family */
char sa_data[14]; /* up to 14 bytes of direct address */
};
#else
/*
* Structure used by kernel to store most
* addresses.
*/
struct sockaddr {
unsigned short sa_family; /* address family */
char sa_data[14]; /* up to 14 bytes of direct address */
};
#endif /* _XOPEN_SOURCE_EXTENDED */
#if defined(_HPUX_SOURCE) || defined(_INCLUDE_XOPEN_SOURCE_520)
struct sockaddr_ext {
sa_family_t sa_family; /* address family */
char sa_data[26]; /* up to 26 bytes of direct address */
};
/* sockaddr_storage:
* - It is large enough to accomodate sockaddr_in and sockaddr_in6 and
* possibly other protocol specific socket addresses.
* - The sockaddr_storage structure will align on a 64 bit boundary on
* HP-UX as the "_ss_align" field is defined as "double" which is
* 8 byte (64 bit) on ILP32 and LP64.
* - "uint64_t" is not a valid type for strict ANSI C compilation for ILP32.
* - If "double" ever becomes larger than 64 bit in the future, these
* defines need to be updated.
*/
#define _SS_MAXSIZE 256 /* Implementation specific max size */
#define _SS_ALIGNSIZE (sizeof(double)) /* force the structure up to 64bit
aligned */
/*
* Definitions used for sockaddr_storage structure paddings design.
*/
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof (sa_family_t))
#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (sa_family_t) + _SS_PAD1SIZE + \
_SS_ALIGNSIZE))
struct sockaddr_storage {
sa_family_t ss_family; /* address family */
/* Following fields are implementation specific */
char _ss_pad1[_SS_PAD1SIZE]; /* 6 bytes of padding */
double _ss_align; /* field to force desired 64bit structure */
char _ss_pad2[_SS_PAD2SIZE];
};
#endif /* HP_UX SOURCE || INCLUDE_XOPEN_SOURCE_520 */
#ifndef _XOPEN_SOURCE_EXTENDED
/*
* Structure used by kernel to pass protocol
* information in raw sockets.
*/
struct sockproto {
unsigned short sp_family; /* address family */
unsigned short sp_protocol; /* protocol */
};
#endif /* !_XOPEN_SOURCE_EXTENDED */
/*
* Protocol families, same as address families for now.
*/
#define PF_UNSPEC AF_UNSPEC
#define PF_UNIX AF_UNIX
#define PF_INET AF_INET
#define PF_IMPLINK AF_IMPLINK
#define PF_PUP AF_PUP
#define PF_CHAOS AF_CHAOS
#define PF_NS AF_NS
#define PF_NBS AF_NBS
#define PF_ECMA AF_ECMA
#define PF_DATAKIT AF_DATAKIT
#define PF_CCITT AF_CCITT
#define PF_SNA AF_SNA
#define PF_DECnet AF_DECnet
#define PF_DLI AF_DLI
#define PF_LAT AF_LAT
#define PF_HYLINK AF_HYLINK
#define PF_APPLETALK AF_APPLETALK
#define PF_OTS AF_OTS
#define PF_NIT AF_NIT
#define PF_VME_LINK AF_VME_LINK
#define PF_KEY AF_KEY
#define PF_POLICY AF_POLICY
#define PF_INET6 AF_INET6
#define PF_MAX AF_MAX
/*
* Maximum queue length specifiable by listen.
*/
#define SOMAXCONN 4096
#if defined(_XOPEN_SOURCE_EXTENDED) && !defined(_KERNEL)
/*
* Message header for recvmsg and sendmsg calls.
* Used value-result for recvmsg, value only for sendmsg.
*/
struct msghdr {
void *msg_name; /* optional address */
socklen_t msg_namelen; /* size of address */
struct iovec *msg_iov; /* scatter/gather array */
int msg_iovlen; /* # elements in msg_iov */
void *msg_control; /* ancillary data, see below */
socklen_t msg_controllen; /* ancillary data buffer len */
int msg_flags; /* flags on received message */
};
#else
/*
* Message header for recvmsg and sendmsg calls.
*/
struct msghdr {
caddr_t msg_name; /* optional address */
int msg_namelen; /* size of address */
struct iovec *msg_iov; /* scatter/gather array */
int msg_iovlen; /* # elements in msg_iov */
caddr_t msg_accrights; /* access rights sent/received */
int msg_accrightslen;
};
/*
* Message header for recvmsg and sendmsg calls.
* Used value-result for recvmsg, value only for sendmsg.
*/
struct msghdr2 {
caddr_t msg_name; /* optional address */
socklen_t msg_namelen; /* size of address */
struct iovec *msg_iov; /* scatter/gather array */
u_int msg_iovlen; /* # elements in msg_iov */
caddr_t msg_control; /* ancillary data, see below */
socklen_t msg_controllen; /* ancillary data buffer_ len */
int msg_flags; /* flags on received message */
};
#endif /* _XOPEN_SOURCE_EXTENDED */
#define MSG_OOB 0x1 /* process out-of-band data */
#define MSG_PEEK 0x2 /* peek at incoming message */
#define MSG_DONTROUTE 0x4 /* send without using routing tables */
#ifdef _XOPEN_SOURCE_EXTENDED
#define MSG_EOR 0x8 /* data completes record */
#define MSG_TRUNC 0x10 /* data discarded before delivery */
#define MSG_CTRUNC 0x20 /* control data lost before delivery */
#define MSG_WAITALL 0x40 /* wait for full request or error */
#else
#ifdef _KERNEL
#define MSG_EOR 0x8 /* data completes record */
#define MSG_TRUNC 0x10 /* data discarded before delivery */
#define MSG_CTRUNC 0x20 /* control data lost before delivery */
#define MSG_WAITALL 0x40 /* wait for full request or error */
#endif /* _KERNEL */
#endif /* _XOPEN_SOURCE_EXTENDED */
#ifdef _KERNEL
/* Following used within kernel */
#define MSG_MBUF 0x1000 /* data in kernel, skip uiomove */
#define MSG_NONBLOCK 0x4000 /* nonblocking request */
#define MSG_COMPAT 0x8000 /* 4.3-format sockaddr */
#endif /* _KERNEL */
#define MSG_MAXIOVLEN 16
#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_KERNEL)
/*
* Given a byte length, align it to word boundary, aligned for cmsghdr.
*/
#define _CMSG_ALIGN(p) (((p) + (int)sizeof(socklen_t) - 1) & ~((int)sizeof(socklen_t) - 1))
/*
* Header for ancillary data objects in msg_control buffer.
* Used for additional information with/about a datagram
* not expressible by flags. The format is a sequence
* of message elements headed by cmsghdr structures.
*/
struct cmsghdr {
socklen_t cmsg_len; /* data byte count, including hdr */
int cmsg_level; /* originating protocol */
int cmsg_type; /* protocol-specific type */
/* followed by u_char cmsg_data[]; */
};
/* given pointer to struct cmsghdr, return pointer to data */
#define CMSG_DATA(cmsg) ((unsigned char *)((cmsg) + 1))
#define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control)
/* given pointer to struct cmsghdr, return pointer to next cmsghdr */
#define CMSG_NXTHDR(mhdr, cmsg) \
(((cmsg) == (struct cmsghdr *)0) ? CMSG_FIRSTHDR(mhdr) : \
(((caddr_t)(cmsg) + ((struct cmsghdr *)(cmsg))->cmsg_len + (int)sizeof(struct cmsghdr) > \
(caddr_t)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
(struct cmsghdr *)0 : \
(struct cmsghdr *)((caddr_t)(cmsg) + _CMSG_ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len))))
#define CMSG_SPACE(length) (sizeof(struct cmsghdr) + \
_CMSG_ALIGN(length))
#define CMSG_LEN(length) (sizeof(struct cmsghdr) + length)
/* "Socket"-level control message types: */
#define SCM_RIGHTS 0x01 /* access rights (array of int) */
#endif /* _XOPEN_SOURCE_EXTENDED || _KERNEL */
/* BSDIPC system calls */
#ifndef _KERNEL
#if defined(_XOPEN_SOURCE_EXTENDED) && !defined(_KERNEL)
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
extern int accept __((int, struct sockaddr *, socklen_t *));
extern int bind __((int, const struct sockaddr *, socklen_t));
extern int connect __((int, const struct sockaddr *, socklen_t));
extern int getpeername __((int, struct sockaddr *, socklen_t *));
extern int getsockname __((int, struct sockaddr *, socklen_t *));
extern int getsockopt __((int, int, int, void *, socklen_t *));
extern int listen __((int, int));
extern ssize_t recv __((int, void *, size_t, int));
extern ssize_t recvfrom __((int, void *, size_t, int,
struct sockaddr *, socklen_t *));
extern ssize_t recvmsg __((int, struct msghdr *, int));
extern ssize_t send __((int, const void *, size_t, int));
extern ssize_t sendmsg __((int, const struct msghdr *, int));
extern ssize_t sendto __((int, const void *, size_t, int,
const struct sockaddr *, socklen_t));
extern int setsockopt __((int, int, int, const void *, socklen_t));
extern int shutdown __((int, int));
extern int socket __((int, int, int));
extern int socketpair __((int, int, int, int[2]));
#ifdef __cplusplus
}
#endif /* __cplusplus */
#else /* !_XOPEN_SOURCE_EXTENDED*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
extern int accept __((int, void *, int *));
extern int bind __((int, const void *, int));
extern int connect __((int, const void *, int));
extern int getpeername __((int, void *, int *));
extern int getsockname __((int, void *, int *));
extern int getsockopt __((int, int, int, void *, int *));
extern int listen __((int, int));
extern int recv __((int, void *, int, int));
extern int recvfrom __((int, void *, int, int, void *, int *));
extern int recvmsg __((int, struct msghdr msg[], int));
extern int send __((int, const void *, int, int));
extern int sendto __((int, const void *, int, int, const void *, int));
extern int sendmsg __((int, const struct msghdr msg[], int));
extern int setsockopt __((int, int, int, const void *, int));
extern int shutdown __((int, int));
extern int socket __((int, int, int));
extern int socketpair __((int, int, int, int[2]));
extern sbsize_t sendfile __((int, int, off_t, bsize_t,
const struct iovec *, int));
extern sbsize_t sendpath __((int, char *, off_t, bsize_t,
const struct iovec *, int));
#if defined(_LARGEFILE64_SOURCE)
#ifdef __LP64__
#define sendfile64 sendfile
#define sendpath64 sendpath
#else /* __LP64__ */
extern sbsize64_t sendfile64 __((int, int, off64_t, bsize64_t,
const struct iovec *, int));
extern sbsize64_t sendpath64 __((int, char *, off64_t, bsize64_t,
const struct iovec *, int));
#endif /* __LP64 */
#endif /* _LARGEFILE64_SOURCE */
#ifdef _APP32_64BIT_OFF_T
extern sbsize64_t __sendfile64 __((int,int,off_t,bsize_t, const struct iovec *, int));
extern sbsize64_t __sendpath64 __((int,char *,off_t,bsize_t,const struct iovec *,int));
#ifndef __cplusplus
static sbsize_t sendfile(a,b,c,d,e,f) int a,b,f; off_t c; bsize_t d; __const struct iovec * e; { return __sendfile64(a,b,c,d,e,f); }
static sbsize_t sendpath(a,b,c,d,e,f) int a,f; char *b; off_t c; bsize_t d; __const struct iovec * e; { return __sendpath64(a,b,c,d,e,f); }
#endif /* __cplusplus */
#endif /* _APP32_64BIT_OFF_T */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#if defined(__cplusplus) && defined(_APP32_64BIT_OFF_T)
inline sbsize_t sendfile __((int,int,off_t,bsize_t,const struct iovec *,int));
inline sbsize_t sendpath __((int,char *,off_t,bsize_t, const struct iovec *,int));
inline sbsize_t sendfile(int a, int b, off_t c, bsize_t d, const struct iovec *
e, int f) { return __sendfile64(a,b,c,d,e,f); }
inline sbsize_t sendpath(int a, char *b, off_t c, bsize_t d, const struct iovec
* e, int f) { return __sendpath64(a,b,c,d,e,f); }
#endif /* __cplusplus && _APP32_64BIT_OFF_T */
#endif /* !_XOPEN_SOURCE_EXTENDED*/
#ifndef _XOPEN_SOURCE_EXTENDED
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
extern int rcmd __((char **, int, const char *,
const char *, const char *, int *));
extern int rexec __((char **, int, const char *,
const char *, const char *, int *));
extern int rresvport __((int *));
extern int ruserok __((const char *, int, const char *, const char *));
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !_XOPEN_SOURCE_EXTENDED */
#endif /* not _KERNEL */
#endif /* _INCLUDE_XOPEN_SOURCE_EXTENDED */
#endif /* not _SYS_SOCKET_INCLUDED */