[Rubycocoa-devel 343] Re: which error should be raised at missing argument(s)

Back to archive index

kimura wataru kimur****@i*****
Thu Aug 10 00:16:18 JST 2006


Hi,

On Tue, 8 Aug 2006 20:27:20 +0100, Jonathan Paisley wrote:
> 
> On 7 Aug 2006, at 16:27, kimura wataru wrote:
> 
>>  I removed the nil-completion feature and modified to raise
>>  OSX::OCMessageSendException (in [rubycocoa-devel:300]). But I have
>>  second thought that this error should raise ArgumentError same as
>>  missing arguments in Ruby. It's strange that programmers have to note
>>  a method is implemented in Objective-C or Ruby.
>> 
>>  How do you think?
> 
> I think an ArgumentError sounds like a good option.
> 
Thanks, I commited this change to svn (apple-unstable branch).


> I'm hopefully going to try committing my Xcode project updates to the  
> Subversion repository. Have you had a chance to try it yet?
> 

I tried and got a "BUS Error" on testing. I'll survey this.

  % ruby install.rb test
    :
    :
  "/usr/local/stow/ruby-1.8.4/bin/ruby" -I../ext/rubycocoa -I../lib testall.rb
  tc_attachments.rb
  ../ext/rubycocoa/rubycocoa.bundle: [BUG] Bus Error
  ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]


btw, I think install.rb need not to traverse .svn directories. 

Index: install.rb
===================================================================
--- install.rb	(revision 1041)
+++ install.rb	(working copy)
@@ -780,6 +780,7 @@
 
   def traverse( task, rel, mid )
     return if File.basename(rel) == 'CVS'
+    return if File.basename(rel) == '.svn'
     return if rel =~ /^framework\//
     return unless respond_to? mid
     dive_into( rel ) {



-- 
kimura wataru



More information about the Rubycocoa-devel mailing list
Back to archive index