[Camelbones-devel] New in CVS - tied NSArray
Brought to you by:
shermpendley
From: Sherm P. <sh...@do...> - 2004-02-17 09:51:41
|
New in CVS: If you make a call in list context to a method that returns an NSArray (or subclass), the method returns an array that is tied to an object of class CamelBones::TiedArray. In other words, two-way transparent bridging for arrays now works pretty much just like you'd expect it to: my @list = NSArray->arrayWithArray(['foo', 'bar', 'baz']); for (@list) { print "$_\n"; } print join(",", @list), "\n"; print scalar(@list), "\n"; print $#list, "\n"; my $obj = NSArray->arrayWithArray(['foo', 'bar', 'baz']); print $obj->description(); my $obj = NSArray->arrayWithArray(['foo', 'bar', 'baz']); # print() normally forces list context, so use scalar() print scalar($obj->description()), "\n"; I'll implement the same for hashes/NSDictionaries tomorrow. After that, I think it's time for a feature freeze leading up to a 0.2.2 release around March 1st. I think there's more than enough new stuff to warrant a release, and there are bugs to squash and docs to write before then. sherm-- |