[swift-users] protocol definition question

2017-12-13 Thread Frank Swarbrick via swift-users
I have the following: public protocol RawBits: CustomStringConvertible, Collection { associatedtype RawValue var rawValue: RawValue { get set } } extension RawBits where RawValue: FixedWidthInteger, RawValue: UnsignedInteger { [...fields and methods are defined here...] }

Re: [swift-users] module.modulemap documentation

2017-12-03 Thread Frank Swarbrick via swift-users
ft.org Subject: Re: [swift-users] module.modulemap documentation On Dec 3, 2017, at 7:42 PM, Frank Swarbrick via swift-users <swift-users@swift.org <mailto:swift-users@swift.org> > wrote: Where are all of the options/parameters/behaviors/whatever documented? I can’t for t

[swift-users] module.modulemap documentation

2017-12-03 Thread Frank Swarbrick via swift-users
Where are all of the options/parameters/behaviors/whatever documented? I can't for the life of me find it anywhere. GINMF. Frank ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] what is the use of "-frontend" argument to swift?

2017-12-06 Thread Frank Swarbrick via swift-users
If you compile with the -v option you’ll see how -frontend is used, (below, with some comments by me): frank@DESKTOP-6Q7P3OK:~/src/swift$ swiftc -v -module-name CTest CTest.swift ../c/CTest.o Swift version 4.0.2 (swift-4.0.2-RELEASE) Target: x86_64-unknown-linux-gnu Compile:

[swift-users] my first protocol

2017-12-09 Thread Frank Swarbrick via swift-users
I am aware of the OptionSet protocol, that is used to represent a "mathematical bit set". But I found it too be a bit "too much" for a simple bitmap. So I created my own, called RawBits. This is the first protocol I've written in Swift, so I'd be interested in any constructive criticism anyone