Skip to content
Discussion options

You must be logged in to vote

I'm learning c3, too. This might be wrong, but...

What is OutStream

Outstream is an interface in std::io::stream:

//Line 19 - 27
interface OutStream
{
	fn void? destroy() @optional;
	fn void? close() @optional;
	fn void? flush() @optional;
	fn usz? write(char[] bytes);
	fn void? write_byte(char c);
	fn usz? read_to(InStream in) @optional;
}

In this page, you may found this:

To declare that a type implements an interface, add it after the type name.

What DString(Outstream) mean

DString is a type, it just implemented OutStream interface.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LukyGuyLucky
Comment options

Answer selected by LukyGuyLucky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants