• M3 programming workflow

    From =?ISO-8859-1?Q?Manuel_Antol=EDn_Bai@21:1/5 to All on Mon Sep 21 22:19:22 2015
    El domingo, 5 de junio de 2011, 2:05:11 (UTC+2), duke escribió:
    Hello Group ...

    As much as I think `cm3ide' is very cool, I'm too used to
    working with `emacs'. I'd like to establish an emacs-centric
    workflow for using cm3 - if that's possible. Advise please.

    In the meantime, I have the following code in a M3 "learning"
    directory:

    MODULE Main;

    IMPORT IO;
    VAR name: TEXT;

    BEGIN
    IO.Put("Enter your name: ");
    name := IO.GetLine();
    IO.Put("Your name is: " & name & "\n");
    END Main.

    The c3makefile is:

    import("libm3")
    implementation("Main")
    program("my_hello")

    It compiles, but with this warning:

    dnormandin@select-man:~/Programming/Modula-3/code$
    cm3
    --- building in LINUXLIBC6 ---

    new source -> compiling Main.m3
    "../Main.m3", line 8: warning: potentially unhandled exception: IO.Error
    1 warning encountered
    linking my_hello

    I like to clean up all warnings - so what did I do wrong in the above
    code or makefile? TIA

    --
    Duke
    I think that giving cm3IDE a clue to select emacs, provided you cet an cygwin-like environment on windows, or straightaway in linux
    it suffices to tell in configuartion that editing is to be done with the editor you wish to use.
    MAB


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)