Changeset 2c57025 for src/libcfa


Ignore:
Timestamp:
Nov 25, 2016, 6:11:03 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
0f35657
Parents:
186fd86
Message:

add support for built-in sized trait which decouples size/alignment information from otype parameters, add test for sized trait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/prelude.cf

    r186fd86 r2c57025  
    108108forall( otype T ) const volatile T *     --?( const volatile T ** );
    109109
    110 forall( otype T ) lvalue T               *?(                 T * );
    111 forall( otype T ) const lvalue T                 *?( const           T * );
    112 forall( otype T ) volatile lvalue T      *?(       volatile  T * );
    113 forall( otype T ) const volatile lvalue T *?( const volatile  T * );
     110forall( dtype T | sized(T) ) lvalue T            *?(                 T * );
     111forall( dtype T | sized(T) ) const lvalue T              *?( const           T * );
     112forall( dtype T | sized(T) ) volatile lvalue T   *?(       volatile  T * );
     113forall( dtype T | sized(T) ) const volatile lvalue T *?( const volatile  T * );
    114114forall( ftype FT ) lvalue FT             *?( FT * );
    115115
Note: See TracChangeset for help on using the changeset viewer.