[e-lang] Capabilities and value types - a conclusion?
David Wagner
daw at cs.berkeley.edu
Fri Nov 3 01:24:21 CST 2006
Sandro Magi <naasking at higherlogics.com> writes:
>public struct FileStreamWrapper {
> FileStream output;
> //...
> public void Write(byte[] bytes) {
> output.Write(bytes);
> }
>}
Oh. Crud. Ok, I take back everything I wrote: I hadn't realized that
fields could be non-public. What I wrote was nonsense.
Based on this, your view of structs as mutable objects that are
automatically copied (cloned) in various places makes sense to me.
More information about the e-lang
mailing list