Forum: Ruby-dev [ruby-trunk - Feature #6545][Assigned] inconvinient require order of DL

8cbb39dadafaf2287a83a13ee4981ec9?d=identicon&s=25 usa (Usaku NAKAMURA) (Guest)
on 2012-06-04 06:30
(Received via mailing list)
Issue #6545 has been reported by usa (Usaku NAKAMURA).

----------------------------------------
Feature #6545: inconvinient require order of DL
https://bugs.ruby-lang.org/issues/6545

Author: usa (Usaku NAKAMURA)
Status: Assigned
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
Category: ext
Target version: 2.0.0


I found that test/dl/test_c_{struct,union}_entity.rb was broken when
running
test-all with -j option.
The problem was wrong require, so I resolved them in r35901.

In the middle of this work, I noticed that dl/struct.rb didn't require
dl/value.rb although depending on it.
Moreover, I also noticed that dl/value.rb and dl/func.rb were depend on
each other and not require other one.

For this reason, to use dl/struct.rb, as r35901 showed, it is necessary
to require files with a puzzled order.
This is a very foolish demand.
I strongly recommend removing such a puzzle.
Be30361bb0b0c495e3077db43ad84b56?d=identicon&s=25 tenderlovemaking (Aaron Patterson) (Guest)
on 2012-10-30 18:55
(Received via mailing list)
Issue #6545 has been updated by tenderlovemaking (Aaron Patterson).

Status changed from Assigned to Closed
% Done changed from 0 to 100

I've fixed this in r37391.  The fix isn't optimal, but it is the
smallest patch to fix the bug.
----------------------------------------
Feature #6545: inconvinient require order of DL
https://bugs.ruby-lang.org/issues/6545#change-32038

Author: usa (Usaku NAKAMURA)
Status: Closed
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
Category: ext
Target version: 2.0.0


I found that test/dl/test_c_{struct,union}_entity.rb was broken when
running
test-all with -j option.
The problem was wrong require, so I resolved them in r35901.

In the middle of this work, I noticed that dl/struct.rb didn't require
dl/value.rb although depending on it.
Moreover, I also noticed that dl/value.rb and dl/func.rb were depend on
each other and not require other one.

For this reason, to use dl/struct.rb, as r35901 showed, it is necessary
to require files with a puzzled order.
This is a very foolish demand.
I strongly recommend removing such a puzzle.
This topic is locked and can not be replied to.