Explorar o código

[std] Make `haxe.io.Input` and `haxe.io.Output` abstract classes (#12346)

Methods `readByte():Int` and `writeByte(Int):Void` are left as-is, because marking them as abstract would break compatibility with existing subclasses that use the `override` modifier.
Frixuu hai 4 semanas
pai
achega
90a2a3c7ed
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      std/haxe/io/Input.hx
  2. 1 1
      std/haxe/io/Output.hx

+ 1 - 1
std/haxe/io/Input.hx

@@ -29,7 +29,7 @@ package haxe.io;
 	All functions which read data throw `Eof` when the end of the stream
 	is reached.
 **/
-class Input {
+abstract class Input {
 	/**
 		Endianness (word byte order) used when reading numbers.
 

+ 1 - 1
std/haxe/io/Output.hx

@@ -28,7 +28,7 @@ package haxe.io;
 	methods. See `File.write` and `String.write` for two ways of creating an
 	Output.
 **/
-class Output {
+abstract class Output {
 	/**
 		Endianness (word byte order) used when writing numbers.