[WIP] Import from http://pike.lysator.liu.se/docs/tutorial/#1
Conversation
There was a problem hiding this comment.
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. :-)
There was a problem hiding this comment.
On Sun, 7 Dec 2014, Johan Sundström wrote:
+}
+```
+
+The value of(x1 + x2) / 2will 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
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:
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>=>## headerProgress:
catchandthrow