Attached patch fixes (well, at least a bit of) Rake build. In
particular, this patch fixes get_case_sensitive_path to actually work.
Current code does p.downcase.to_s == filename, which assumes filename
is already downcased, but filename is from *.csproj and it actually is
not, so at least it shoul
2008/11/6 Jose Antonio Diaz <[EMAIL PROTECTED]>:
> Wondering if there is an update to the instructions currently on
> ironruby.net?
>
> I've downloaded the latest stable build of Mono and trying to use the latest
> SVN of IronRuby but it doesn't want to compile. Even reverting to r112 like
> the in
Here's some helper methods I've used for making System::Decimal a little
more palatable:
class Object
def to_clr_dec
System::Decimal.parse(self.to_s)
end
def to_clr_int
System::Int32.parse(self.to_s)
end
end
class System::Decimal
def + other
Sy
Originally, I had hacked in "decimal" to be our BigDecimal representation. Now
that we have a real BigDecimal (courtesy of Peter Bacon Darwin), the CLR
decimal type has become an orphan -- it doesn't really have any direct support
in IronRuby, so you just get the same behavior that you'd get fo
Also, how would I compare decimals in ruby, as Ruby doesn't have a
decimal type built in?
I wanted to do something like
@d > '12312.123123'.to_d
However, that doesn't appear to be possible. I attempt to do to_f,
but I got the following error:
ArgumentError: Object must be of type Decimal.
>Fro
Hello,
Just playing around with some .Net interop and the Decimal type. When
I do puts, I expected that this would have given me the underlying
number, or at least call to_string.
Instead I got the following behaviour, with the object type being outputted.
>>> @d = System::Decimal.MinValue
=> #
I haven't tried to build under Mono for some time now. I know that the rake
compile task is currently broken in r160 - that's the task that you'll need to
use under Mono. Once RubyConf is done, we'll spend some time fixing the
Rakefile and verifying that everything works correctly under Mono.
T
Wondering if there is an update to the instructions currently on
ironruby.net?
I've downloaded the latest stable build of Mono and trying to use the
latest SVN of IronRuby but it doesn't want to compile. Even reverting
to r112 like the instructions said doesn't work.
I downloaded the patc