Le 27 juin 06:36, Aryk Grosz a ñÄrit :

> When I require this file, I'll get an error here because module D is
> being included before it gets loaded. I would need to put it above
> module C to get it to work. How can I load the file, and then do all the
> includes so that it can actually find the module.

Not sure how (if) it would work, but can't you just define an empty
Module D with "module D ; end" and then reopen it after :

module A
  module B
    # code
  end
  module D ; end 
  module C
    include B
    include D
    # code
  end
  module D
    # code
  end
end

Fred
-- 
> Very _basic_ coffeemakers.
10 BREW $CF                         | 40 DRINK $CF
20 IF $CF<=0 THEN GOTO 10           | 50 GOTO 20
30 POUR $CF                   (Graham Reed in the Scary Devil Monastery)