[#8136] Confused exception handling in Continuation Context — "Robert Dober" <robert.dober@...>

Hi all

13 messages 2006/07/06

[#8248] One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...>

I just posted this to ruby-talk. But I would also like to discuss this

33 messages 2006/07/18
[#8264] Re: One-Click Installer: MinGW? or VC2005? — Charlie Savage <cfis@...> 2006/07/19

From my experience using both tool chains on Windows (for the ruby-prof

[#8266] Re: One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...> 2006/07/19

Tim, I'm going to top reply since your post was so long. I'm interested in

[#8267] Re: One-Click Installer: MinGW? or VC2005? — Charlie Savage <cfis@...> 2006/07/19

> Tim, I'm going to top reply since your post was so long. I'm interested in

[#8271] my sandboxing extension!! — why the lucky stiff <ruby-core@...>

I have (what feels like) very exciting news. I finally sat down to code up my

17 messages 2006/07/19

[#8430] Re: doc patch: weakref. — "Berger, Daniel" <Daniel.Berger@...>

> -----Original Message-----

19 messages 2006/07/28
[#8434] Re: doc patch: weakref. — Yukihiro Matsumoto <matz@...> 2006/07/29

Hi,

[#8436] Re: doc patch: weakref. — Daniel Berger <djberg96@...> 2006/07/29

Yukihiro Matsumoto wrote:

[#8437] Re: doc patch: weakref. — Mauricio Fernandez <mfp@...> 2006/07/29

On Sat, Jul 29, 2006 at 07:37:24PM +0900, Daniel Berger wrote:

[#8441] Inconsistency in scoping during module_eval? — "Charles O Nutter" <headius@...>

I have the following code:

18 messages 2006/07/30
[#8442] Re: Inconsistency in scoping during module_eval? — nobu@... 2006/07/30

Hi,

[#8443] Re: Inconsistency in scoping during module_eval? — "Charles O Nutter" <headius@...> 2006/07/30

Why does this:

[#8445] Re: Inconsistency in scoping during module_eval? — Yukihiro Matsumoto <matz@...> 2006/07/30

Hi,

[#8454] Re: Inconsistency in scoping during module_eval? — "Charles O Nutter" <headius@...> 2006/07/31

So to clarify...

Re: [YAY] my sandboxing extension!!

From: "Nikolai Weibull" <now@...>
Date: 2006-07-23 20:32:17 UTC
List: ruby-core #8372
On 7/23/06, Mathieu Bouchard <matju@artengine.ca> wrote:
> On Mon, 24 Jul 2006, Nikolai Weibull wrote:

> > On 7/23/06, Mathieu Bouchard <matju@artengine.ca> wrote:

> >>    VALUE foo = rb_funcall((VALUE)3,rb_intern("<<"),INT2NUM(n));

> > Yuck, that's really nasty

> Thank you! If you can't think of a better solution, don't call it nasty.

Wow.  You totally misinterpreted that.  I meant nasty as in "clever
hack", not as in "you suck, please email me back an unpleasant
response to this mail".  Sorry about me being unclear on that point.

(And now that I've vented /my/ pent-up anger, please except my
apologies for using a formulation that I didn't realize you might find
offensive.  I did figure that the "it's a solution, however" comment
would clear up any such misinterpretation, however.)

(To continue, the "yuck" substituted my inital "euh", which I couldn't
figure out how to spell, so I used a word that I can spell to mean the
feeling of "I don't want to touch that thing, it may be sticky.)

> A solution not running in O(n) can't be called better, and I can't think
> of anything else in O(n), can you?

A better solution would be to provide an interface for it.  However, a
solution that feels a bit less "clever hackyish" is to simply copy
over bignew_1() and bignew() from bignum.c, although the code
duplication and possibility of not syncing with upstream changes makes
for a less than good solution.

> > (INT2FIX() is sufficient, though).
>
> If you mean vs INT2NUM, this hardly makes any difference.

That is what I meant, and no it doesn't, but we have it and we know we
can use it, so why not do so?  It was just an observation, not a
complaint.

> If you mean (VALUE)3, I don't know why I didn't write INT2NUM(1) or
> INT2FIX(1) instead, but as it is, it doesn't make any difference either.

I thought it was kind of cute, but INT2*(1) would perhaps make it look
less "nasty".

  nikolai

In This Thread

Prev Next