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

destructors #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -469,16 +469,16 @@ \subsection{Destructors}
It may be translated to EO as such:

\begin{ffcode}
[] > Foo
[] > new
seq > @
QQ.io.stdout "Alive" > @
[]
[] > destructor
QQ.io.stdout "Dead" > @
[] > main
[] > foo
nop > @
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MCJOHN974 I believe we don't need this object here

[] > constructor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MCJOHN974 Why you change this name from new ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Graur why we should map destructor as destructor object and construcor as new object

QQ.io.stdout "Alive" > @
[] > destructor
QQ.io.stdout "Dead" > @
[] > app
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MCJOHN974 I believe we don't need to change the code below

foo > f
seq > @
Foo.new > f
f.constructor
f.destructor
\end{ffcode}

Expand Down