Memory layout of a data structure: Difference between revisions

Content added Content deleted
Line 392: Line 392:
const RTS = 7
const RTS = 7
const CTS = 8
const CTS = 8

port = NinePinSerialPort()


# Here we test the type's code.
# Here we test the type's code.
port = NinePinSerialPort()

println("Port is now at defaults, which are $port")
println("Port is now at defaults, which are $port")
port[CTS] = true
port[CTS] = true