[Question][Hw4] #709
Replies: 6 comments
-
Hi, Please refer to comment. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I read that. However, I still don't know exactly what it means. |
Beta Was this translation helpful? Give feedback.
-
I tried to print out the parameters of Execute_with_capability, which is string * object.t * string, in scenario 2.
My code in capability.run:
The result was
Since the document said that
I can understand that first string being "fd" for capability, but why does the second string print out "fd" also? Thank you |
Beta Was this translation helpful? Give feedback.
-
I think the documentation is extremely misleading, and makes this homework problem confusing for no reason. for |
Beta Was this translation helpful? Give feedback.
-
Why do we need the fd parameter string? |
Beta Was this translation helpful? Give feedback.
-
I think this issue will answer your question. You can think about why the file descriptor is used in capability to find the reason why the fd parameter is needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can you describe what strings stand for in Open, Read_with_capability, Execute_with_capability commands?
type command =
.
.
.
| Open of string * Object.t * permission
| Execute_with_capability of string * Object.t * string
| Read_with_capability of string * Object.t
Beta Was this translation helpful? Give feedback.
All reactions