Changeset 8509 in project


Ignore:
Timestamp:
02/17/08 01:55:06 (12 years ago)
Author:
felix winkelmann
Message:

meroon doc update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/meroon

    r7165 r8509  
    1414
    1515The Meroon version is Meroon V3 Noel+2 $Revision: 1.1 $
    16 
     16   
     17    * 1.91 Bug fix in method defining macros [Thanks Matt Gushee]
    1718    * 1.9 Generates an .exports file and install documentation. Fixed bug in meroon.scm [Thanks to Stu Glaser]
    1819    * 1.8 The code is now compiled with -no-trace instead of -d0
     
    400401
    401402
    402 == Compiling with Bigloo
    403 
    404 You can compile  modules  using  MeroonV3  features  under
    405 Bigloo (1.6 and above) very conveniently. The installation
    406 of MeroonV3 creates a new compiler called  bigloo++.  When
    407 this compiler compiles a module whose name ends by the oon
    408 extension then bigloo++ automatically sets up the relevant
    409 details to compile it. Suppose you have the following mod­
    410 ule:
    411 
    412  (module test (main start))
    413  (define-class Point Object (x y))
    414  (define-generic (magnitude (o)))
    415  (define-method (magnitude (o Point))
    416    (+ (Point-x o) (Point-y o)) )
    417  (define (start args)
    418    (show (magnitude (make-Point 11 22)))
    419    (newline) )
    420 
    421 Then you can simply compile it with:
    422 
    423  bigloo++ file.oon ...
    424 
    425 But if you prefer another name for your files you have  to
    426 say  explicitly  that  you  want  to use MeroonV3. In this
    427 case, just say:
    428 
    429 bigloo++ -extend meroon file.scm ...
    430 
    431 The bigloo++ compiler can  also  be  called  with  the  -i
    432 option  as  a  regular interpreter, it then offers you all
    433 features of MeroonV3.
    434 
    435 
    436 == Interpreting with SCI
    437 
    438 You can interpret programs  containing  MeroonV3  features
    439 under sci very conveniently.  The installation of MeroonV3
    440 creates a new interpreter called  sci++  that  contains  a
    441 fully compiled MeroonV3 in it.
    442 
    443 
    444 == More Information
    445 
    446 Additional documentation, examples and tricks can be found
    447 in files:
    448 
    449 ; Doc/MeroonV3.{dvi,ps} : The reference manual,
    450 ; Doc/oopil.{dvi,ps} : A sort of rationale for MeroonV3.
    451 ; Doc/dispatch.{dvi,ps} : A description of the new dispatching scheme of MeroonV3.
    452 
    453 
    454403== Bugs
    455404
Note: See TracChangeset for help on using the changeset viewer.