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

Re: Towards line disciplines, patch two #1740

Closed
p5pRT opened this issue Apr 3, 2000 · 1 comment
Closed

Re: Towards line disciplines, patch two #1740

p5pRT opened this issue Apr 3, 2000 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Apr 3, 2000

Migrated from rt.perl.org#2991 (status was 'resolved')

Searchable as RT2991$

@p5pRT
Copy link
Author

p5pRT commented Apr 3, 2000

From @simoncozens

Larry Wall (lists.p5p)​:

It is impossible to know what all the characteristics of the stream are.
The idea of a discipline is that you can swap it in and it will do magic
that the designers of the system never imagined, much like source filters.

This is why I'm worried that what I'm working on may not be sufficiently
generic. I'm persuading myself that UTF-8 is an important enough thing
to special-case and will worry about the genericity later.

No, I'm not, let's be honest. I just need to read some Japanese, and I
can do that now, so I'm happy.

DISC_USER was my idea whereby we could go mental. I was thinking of
adding CVs to marshal input and output, but then it dawned on me that
one might as well use a tied filehandle.

The implementation worry is where to put this stuff. We're rapidly
running out of private flags to pass messages around with file handles
and open statements. I envisage some sort of `discipline magic' but I
don't know how to do it.

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