Changeset 8396044 for doc


Ignore:
Timestamp:
Apr 3, 2017, 2:29:04 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
6f71276
Parents:
36e05a2
Message:

small colour changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/generic_types/generic_types.tex

    r36e05a2 r8396044  
    214214Hence, programmers can easily form new local environments to maximize reuse of existing functions and types.
    215215
    216 Finally, variables may be overloaded:
     216Finally, \CFA allows variable overloading:
    217217\lstDeleteShortInline@
    218218\par\smallskip
     
    263263forall( otype T | summable( T ) )
    264264  T sum( T a[$\,$], size_t size ) {
    265         T total = { 0 };                                                $\C{// instantiate T from 0}$
     265        `T` total = { `0` };                                    $\C{// instantiate T from 0}$
    266266        for ( unsigned int i = 0; i < size; i += 1 )
    267                 total += a[i];                                          $\C{// select appropriate +}$
     267                total `+=` a[i];                                        $\C{// select appropriate +}$
    268268        return total;
    269269}
Note: See TracChangeset for help on using the changeset viewer.