/// \brief Definitions that make elements of Builtin usable in real /// code without gobs of boilerplate. These APIs will probably *not* /// be exposed outside the stdlib. func sizeof(_:T.metatype) -> Int { return Int(Word(Builtin.sizeof(T))) } func sizeof(_:T) -> Int { return Int(Word(Builtin.sizeof(T))) } // FIXME: should be a constructor of UnsafePointer func addressof(x: @inout T) -> UnsafePointer { return UnsafePointer(Builtin.addressof(&x)) }