Mercerenies / latitude

Latitude - A prototype-oriented programming language
MIT License
7 stars 0 forks source link

A `flush` function to force output buffering #2

Closed Mercerenies closed 6 years ago

Mercerenies commented 6 years ago

It would be useful to have a function to force immediate buffering to a stream. This function would need to be implemented in Stream.hpp and all subclasses of Stream (it is possible that some subclasses would have flushing be a no-op). Then, within core.lats, a Stream flush method would need to be defined.

Example usage:

stdout print: someString.
stdout flush.