What needs to be in a macro capability!

Discussion in 'Python' started by Donald 'Paddy' McCarthy, Aug 25, 2003.

  1. So, for those that don't actively not-want a Python macro facility.

    If we are to have it what should it do?
    1) Macro definitions should allow Doc strings.
    2) There should be a separate statement to import Macro definitions
    from another file.
    3) Existing import of a module file containing module definitions
    should NOT cause the module files macros to be 'active' in the file
    that is importing.
    A new macro import command would be needed (or an extension of the
    existing import command to say that macro(s) are also imported and
    active.
    4) An (annotated) dump of macro expanded source should be made
    available (by command line option).
    5) It should not be the Lisp macro facility.
    6) It should not be the C/C++ macro facility.
    7) Macro definitions should be a distinctive new statement.
    7) The scope of a macro definition should follow that of existing names

    I don't have an implementation though ;-)

    Pad.
     
    Donald 'Paddy' McCarthy, Aug 25, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dead RAM
    Replies:
    20
    Views:
    1,175
    John Harrison
    Jul 14, 2004
  2. D Senthil Kumar

    macro name from macro?

    D Senthil Kumar, Sep 20, 2003, in forum: C Programming
    Replies:
    1
    Views:
    608
    Jack Klein
    Sep 21, 2003
  3. sounak

    to get macro name from macro value

    sounak, Nov 22, 2005, in forum: C Programming
    Replies:
    17
    Views:
    526
    Mark McIntyre
    Nov 22, 2005
  4. Patrick Kowalzick
    Replies:
    5
    Views:
    511
    Patrick Kowalzick
    Mar 14, 2006
  5. Mike Manilone

    macro inside macro

    Mike Manilone, Oct 3, 2011, in forum: C Programming
    Replies:
    8
    Views:
    491
    Mike Manilone
    Oct 6, 2011
Loading...

Share This Page