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

[WIP] Import from http://pike.lysator.liu.se/docs/tutorial/ #1

Merged
merged 1 commit into from
Apr 3, 2015

Conversation

johan
Copy link
Contributor

@johan johan commented Dec 7, 2014

Source material: 9f05ab1 has remaining xml files. Some files, mostly those that have the SiteBuilder <metadata> block left in them, are duplicates with either other xml files, or files already converted to Markdown.

Text formatting convention used: semantic linefeeds, as summarized in this self-documenting example:

  By starting a new line at the end of each sentence,
  and splitting sentences themselves
  at natural breaks between clauses,
  a text file becomes far easier to edit and version control.

Also, aspirationally: 80 char lines at most, but for tables and the like, visual end results is what matters.

Conversion method: convert all tags to their markdown equivalents

  • <list>+<item> => numbered, bullet or definition lists
  • <comment> => nuke
  • <interactive> => put in triple-backtick escape + prefix <in> bits with a > prompt + strip <out> tags
  • <h1> => ## header

Progress:

(or, more precisely: copies of those values)
to the called method.
This means that in the example

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the original xml markup, there was a hidden comment:

<comment>Wrong!</comment>

right here. If anyone has constructive input on what that is about and if we should change something here, speak up. :-)

Copy link
Member

Choose a reason for hiding this comment

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

On Sun, 7 Dec 2014, Johan Sundström wrote:

+}
+```
+
+The value of(x1 + x2) / 2 will be calculated,
+giving 20.0.
+This value is then returned to the point where the method was called,
+and is used as the value of the method-call expression.
+
+Note that Pike uses "call by value".
+This means that Pike always calculates the value of the arguments
+before calling a method,
+and then it sends those values
+(or, more precisely: copies of those values)
+to the called method.
+This means that in the example
+

In the original xml markup, there was a hidden comment:

<comment>Wrong!</comment>

right here. If anyone has constructive input on what that is about and
if we should change something here, speak up. :-)

I suspect that it has to do with that some types are reference types, so
that no actual copying of the perceived value is performed for them.

/grubba

Henrik Grubbström grubba@grubba.org
Roxen Internet Software AB grubba@roxen.com

@johan johan changed the title Import from http://pike.lysator.liu.se/docs/tutorial/ [WIP] Import from http://pike.lysator.liu.se/docs/tutorial/ Dec 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants