summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-types.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-16 06:42:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-16 06:42:00 -0700
commit7979d22760e2eb6d29a39cbdd1b164e364f5f721 (patch)
treed08952fab9f44a7653333f2aaca3cce0f8dfefc7 /mpi/mpi-types.h
parent14c16d2e3454f04060c858c5c41c5d946cb69a41 (diff)
downloadtxr-7979d22760e2eb6d29a39cbdd1b164e364f5f721.tar.gz
txr-7979d22760e2eb6d29a39cbdd1b164e364f5f721.tar.bz2
txr-7979d22760e2eb6d29a39cbdd1b164e364f5f721.zip
New length method on structures.
With this change, nreverse is possible on a struct, if it has lambda, lambda-set and length methods. * lib.c (length_s): New symbol variable. (length): Check for length method and call it, in preference to checking for car method and falling back on cdr-based length. (empty): If object has a length method, call it and compare result to zero. (obj_init): Initialize length_s. * txr.1: Documented. We now have the concepts of structs being vector-like sequences or list-like sequences.
Diffstat (limited to 'mpi/mpi-types.h')
0 files changed, 0 insertions, 0 deletions