Re: cml doesn't load ?
brian <briand-/[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
Hi, OK I major reason for my confusion is that the sources file is set up for compilation where as I'm trying to do everything from the command line. So : - CM.make "sources.cm"; [autoloading] ... [New bindings added.] val it = true : bool - open CalcTest; - doit(); WORKS ! So the the calc eXene example works. add doesn't though, seems to be having a problem with bitmap definitions of some sort. However I still have CM confusion From the CM manual: Group (foo-lib.cm) is set-util.sml map-util.sml $/basis.cm exports from the Standard Basis Library are available when compiling these ML source files since the export list has been left blank, the only (implicitly specified) exports of this component are the top-level definitions in its ML source files Maybe my interpretation is not strict enough. Does "ML source files" mean ONLY .sml files ? So if I add $cml/cml.cm to the above example wouldn't cml.cm's exports be available ? The answer is no. As you point out everything works just fine when you add structure CML to the group definition. This gets back to my earlier question about confusion between libraries and groups. Why does the group keyword even exist ? I just can't figure out when I would ever need it since it seems Brian On Jan 4, 2007, at 6:53 AM, John Reppy wrote: > Probably because CML is not being exported from sources.cm (see > the CM manual for details). > > - John > > On Jan 3, 2007, at 11:38 PM, brian wrote: > >> Standard ML of New Jersey v110.60 [built: Thu Nov 9 15:44:30 2006] >> [scanning sources.cm] >> [library $cml/basis.cm is stable] >> [library $cml/cml.cm is stable] >> [library $/eXene.cm is stable] >> [library $cml/cml-internal.cm is stable] >> [library $cml/core-cml.cm is stable] >> [library $SMLNJ-BASIS/basis.cm is stable] >> [library $cml-lib/smlnj-lib.cm is stable] >> [library $SMLNJ-LIB/Util/smlnj-lib.cm is stable] >> [library $cml-lib/trace-cml.cm is stable] >> [loading (sources.cm):acc.sml] >> [loading (sources.cm):calc.sml] >> [loading (sources.cm):main.sml] >> [library $/unix-lib.cm is stable] >> [New bindings added.] >> - open CML; >> stdIn:1.1-1.9 Error: unbound structure: CML >> - >> >> ??? Why is CML unbound when it clearly shows it being loaded ? >> >> I tried sml -m apth-to-cml.cm and that seems to work fine, so I'm >> confused. >> >> You might recognize this as an eXene example :-) >> >> Brian >> >> >> --------------------------------------------------------------------- >> - >> --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Smlnj-list mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/smlnj-list > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Smlnj-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/smlnj-list ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV