[Ironruby-core] digest.so implemented

Wayne Kelly w.kelly at qut.edu.au
Wed Feb 27 22:51:17 EST 2008

Attached is an implementation of the methods and classes from external library digest.so that are used by some simple Rails use cases.


I note, that the IronRuby pattern for supporting custom object cloning it to implement the IDuplicable interface. Is there some reason for this approach rather than using Ruby's standard mechanism of implementing an initialize_copy method? With the latter approach, Ruby programmers can implement their own copy semantics, eg:

class Foo
    def initialize_copy(c)
      puts 'copying'
f = Foo.new
g = f.clone

Cheers, Wayne.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Digest.cs
Url: http://rubyforge.org/pipermail/ironruby-core/attachments/20080228/315649d5/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digest_test.rb
Type: application/octet-stream
Size: 764 bytes
Desc: digest_test.rb
Url : http://rubyforge.org/pipermail/ironruby-core/attachments/20080228/315649d5/attachment.obj 

More information about the Ironruby-core mailing list