# Newtype without automatic protocol forwarding

**URL:** <https://forums.swift.org/t/newtype-without-automatic-protocol-forwarding/16110>\
**Category:** Pitches\
**Created:** [September 12, 2018, 2:34pm UTC](https://forums.swift.org/t/newtype-without-automatic-protocol-forwarding/16110 "2018-09-12T14:34:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Ponyboy47](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ponyboy47/32/2605_2.png) [@Ponyboy47](https://forums.swift.org/u/Ponyboy47)\
**Post date:** [September 12, 2018, 4:49pm UTC](https://forums.swift.org/t/newtype-without-automatic-protocol-forwarding/16110/9 "2018-09-12T16:49:30Z")

</div>

> [@jrose](#):
>
> Does it match the access of the `newtype` , or is it always `internal` or `private` ? If the latter, it's not suitable for RawRepresentable.

The OP did state it would be 'semantically' similar to a struct with a `value`, but it doesn't have to be exactly equivalent to that. I'm no expert, but perhaps it would be possible for the compiler to fudge the access level so that we could have the RawRepresentable conformance while still hiding the internally stored `value`?

Of course, part of the pitch does state `Int is not a RecordId` and having `RawRepresentable` with the copied type would break that wouldn't it?

It also may be against the goals/design of this proposal to do too much compiler magic.

---

_[View the full topic](https://forums.swift.org/t/newtype-without-automatic-protocol-forwarding/16110)._
