Changeset c12ec6 in git


Ignore:
Timestamp:
Jun 10, 2014, 4:36:39 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
daa036a6a0729f3be61906410e87bf1c23561ab8
Parents:
9a416a9b9549caa479aea5b323723f591221fbd7
Message:
addKernelCmds: alias, order of entries
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/HOWTO.addKernelCmds

    r9a416a9 rc12ec6  
    7979      (including NONE)
    8080
     81Remark: the order of these lines is important:
     82  first the interpreter tries a perfect match of the data types,
     83  but, if none is found, the second pass tries automatic type conversion
     84  starting with the first line:
     85  for example: bla(<matrix>,<module>)
     86  ,{D(jjBLAH21),   BLA_CMD,   <return type>,  MATRIX_CMD, MATRIX_CMD, ALLOW_PLURAL |ALLOW_RING}
     87  ,{D(jjBLAH22),   BLA_CMD,   <return type>,  MODUL_CMD,  MODUL_CMD, ALLOW_PLURAL |ALLOW_RING}
     88  would call jjBLAH21, while
     89  ,{D(jjBLAH22),   BLA_CMD,   <return type>,  MODUL_CMD,  MODUL_CMD, ALLOW_PLURAL |ALLOW_RING}
     90  ,{D(jjBLAH21),   BLA_CMD,   <return type>,  MATRIX_CMD, MATRIX_CMD, ALLOW_PLURAL |ALLOW_RING}
     91  would call jjBLAH22.
     92  If certain conversions should not be allowed, add a line/several lines like:
     93  ,{jjWRONG,   BLA_CMD,   NONE,  MATRIX_CMD, MODUL_CMD, ALLOW_PLURAL |ALLOW_RING}
     94  at the end of the block with operations for "bla".
     95
     96Remark: alias: 0: normal reserved word
     97               1: alias for an reserver word: allowed as input, never as output
     98               2: outdated alias: allowed as input, never as output,
     99                  output a warning at first use
Note: See TracChangeset for help on using the changeset viewer.