<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16455">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Slight correction. Comment line was too long
and wrapped over.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>---------- Forwarded message ----------<BR>From: <B
class=gmail_sendername>Harry Spier</B> <SPAN
dir=ltr><vasishtha.spier@gmail.com></SPAN><BR>Date: Tue, Nov 20, 2012 at
11:19 PM<BR>Subject: provide and require in submodules<BR>To: users
<users@racket-lang.org><BR><BR><BR>
<DIV>Dear list members,<BR></DIV>
<DIV><BR></DIV>
<DIV>This works in DrRacket:</DIV>
<DIV>definitions window</DIV>
<DIV>-------------------------</DIV>
<DIV>#lang racket<BR>(module+ server<BR>(provide a-from-server)<BR>(define
a-from-server 'a-from-server))<BR><BR>(module+ client<BR>(module server2 racket
<BR>(provide b-from-server2)<BR>(define b-from-server2
'b-from-server2))<BR><BR>(require (submod ".." server))<BR>(provide
(all-from-out (submod ".." server))) <BR><BR>(require 'server2)<BR>(provide
(all-from-out (submod "." server2))))<BR><BR>(module+ main<BR>(require (submod
".." client))<BR>a-from-server<BR>b-from-server2)</DIV>
<DIV><BR></DIV>
<DIV>Results in interactions window</DIV>
<DIV>---------------</DIV>
<DIV>></DIV>
<DIV>'a-from-server<BR>'b-from-server2</DIV>
<DIV><BR></DIV>
<DIV>BUT the following gives me the error: "all-from-out: no corresponding
require in: (quote server2)"</DIV>
<DIV>Could someone explain why I'm getting this error.</DIV>
<DIV><BR></DIV>
<DIV>Definitions window</DIV>
<DIV>------------------</DIV>
<DIV>#lang racket<BR>(module+ server<BR>(provide a-from-server)<BR>(define
a-from-server 'a-from-server))<BR><BR>(module+ client<BR>(module server2 racket
<BR>(provide b-from-server2)<BR>(define b-from-server2
'b-from-server2))<BR><BR>(require (submod ".." server))<BR>(provide
(all-from-out (submod ".." server))) <BR><BR>(require 'server2)<BR>(provide
(all-from-out 'server2))) ;;;CHANGED (submod "." server2) </DIV>
<DIV>
;;;;;TO 'server2<BR><BR>(module+ main<BR>(require (submod ".."
client))<BR>a-from-server<BR>b-from-server2)</DIV>
<DIV><BR></DIV>
<DIV>Thanks,</DIV>
<DIV>Harry Spier</DIV></DIV></DIV></BODY></HTML>