<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=With</id>
		<title>With - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=With"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=With&amp;action=history"/>
		<updated>2026-05-08T04:37:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=With&amp;diff=4798&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=With&amp;diff=4798&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:36Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=With&amp;diff=4797&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=With&amp;diff=4797&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:04Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=With&amp;diff=3191&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;= With =  === Description ===  Allows the execution of code within a block as if it was taking place within the class itself so there is no need for -&gt; and so on.  &lt;pre&gt; With ( &lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=With&amp;diff=3191&amp;oldid=prev"/>
				<updated>2013-09-19T08:28:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= With =  === Description ===  Allows the execution of code within a block as if it was taking place within the class itself so there is no need for -&amp;gt; and so on.  &amp;lt;pre&amp;gt; With ( &amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= With =&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Allows the execution of code within a block as if it was taking place within the class itself so there is no need for -&amp;gt; and so on.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
With ( &amp;lt;class&amp;gt; )&lt;br /&gt;
{&lt;br /&gt;
    statements&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== class ====&lt;br /&gt;
&lt;br /&gt;
A class to use.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
Example on a simple string:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
// Define a new class&lt;br /&gt;
Class Test&lt;br /&gt;
{&lt;br /&gt;
	my $X;&lt;br /&gt;
	my $Y;&lt;br /&gt;
	Function Hello()&lt;br /&gt;
	{&lt;br /&gt;
		say &amp;quot;Hello&amp;quot;;&lt;br /&gt;
	}&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// Create new intance of the class&lt;br /&gt;
$t = new Test();&lt;br /&gt;
&lt;br /&gt;
// Use With to set the variables of the class&lt;br /&gt;
// and call functions within the class&lt;br /&gt;
// without having to do -&amp;gt;&lt;br /&gt;
With($t)&lt;br /&gt;
{&lt;br /&gt;
	$X = 10;&lt;br /&gt;
	$Y = 20;&lt;br /&gt;
	Hello();&lt;br /&gt;
}&lt;br /&gt;
// Print the content of the class so we can view it&lt;br /&gt;
printr($t);&lt;br /&gt;
// Prints:&lt;br /&gt;
// Hello&lt;br /&gt;
// {CLASS:test;ID:5}&lt;br /&gt;
// {&lt;br /&gt;
//         [x] =&amp;gt; 10&lt;br /&gt;
//         [y] =&amp;gt; 20&lt;br /&gt;
// }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>