Re: MAPLE print content of myfile.m to maple standard output

From: Joe Riel (joer_at_k-online.com)
Date: 11/12/04

  • Next message: Joe Riel: "Re: MAPLE print content of myfile.m to maple standard output"
    Date: Fri, 12 Nov 2004 15:58:57 GMT
    
    

    steineswz@hotmail.com (stijn) writes:

    > Hello joe, my computer was down for a while (server problems) so i
    > could not try your suggestion until now.
    >
    > I tried it, and this came out:
    > {mod}
    >
    > i'm sure i did not just define one "mod" function :-)
    > bon, do you know what i did wrong?
    > greets,
    > stijn

    I forgot about the mod procedure. It will invariably get
    added to the set, probably because it is reassigned to modp.
    One solution is to convert the items to strings:

    > restart:
    > joe := proc() "whatever" end:
    > save joe, "/home/joe/tmp/joe.m":
    > restart;
    > oldnames := map(convert,{anames}(procedure),string):
    > read "/home/joe/tmp/joe.m":
    > map(convert,{anames}(procedure),string) minus oldnames;

                               {joe}

    That yours returned the set {mod} indicates the
    m-file assigns no procedures.

    Joe


  • Next message: Joe Riel: "Re: MAPLE print content of myfile.m to maple standard output"

    Relevant Pages


    Loading