Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature wish in Buffer module #2672

Closed
vicuna opened this issue Jan 26, 2001 · 1 comment
Closed

feature wish in Buffer module #2672

vicuna opened this issue Jan 26, 2001 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jan 26, 2001

Original bug ID: 270
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: olivier andrieu
Version: 3.00
OS: GNU
Submission from: akasha.ijm.jussieu.fr (134.157.173.57)

I find the folowing function useful in some occasions :

Buffer.drop_char : Buffer.t -> unit
Buffer.drop_n_char : Buffer.t -> int -> unit

let drop_char b =
if b.position = 0 then failwith "empty buffer" ;
b.position <- pred b.position

@vicuna
Copy link
Author

vicuna commented Nov 6, 2002

Comment author: administrator

It is not clear how useful this would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant