On Tue, Dec 22, 2015 at 2:29 PM, T.J. Usiyan via swift-evolution <
[email protected]> wrote:
> MIDIMetaEvent and MIDIEventUserData are both examples of framework
> provided types which rely on flexible member arrays. Their last member is
> (officially) an array of UInt8 with 1 element. In practice, developers are
> meant to allocate enough space for an array of the necessary length along
> with the rest of the struct.
>
> These members come into swift as single element tuples. I propose either
> automatic import of these as Array or UnsafeReference.
>
It is important to sketch out an implementation strategy for this proposal.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution