rfc:typecheckingweak
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:typecheckingweak [2009/07/12 15:43] – Add reference to object conversion zeev | rfc:typecheckingweak [2009/07/13 07:23] – Remove a note which turns out to be more confusing than useful zeev | ||
---|---|---|---|
Line 32: | Line 32: | ||
<code php> | <code php> | ||
- | function foo(int x) {} | + | function foo(int |
- | function bar(x, string y) {} | + | function bar($x, string |
- | function baz(int x, float y, string z) {} | + | function baz(int |
- | function foobar(int &x) {} | + | function foobar(int &$x) {} |
</ | </ | ||
Line 48: | Line 48: | ||
bar(' | bar(' | ||
foobar(17.5); | foobar(17.5); | ||
- | $x=17.5; | + | $x=17.5; |
</ | </ | ||
Line 57: | Line 57: | ||
- Emit an error or throw an exception. | - Emit an error or throw an exception. | ||
- | **Note: | ||
Line 124: | Line 123: | ||
<code php> | <code php> | ||
- | function baz(int x, float y, string z) {} | + | function baz(int |
// Strict type checking | // Strict type checking |
rfc/typecheckingweak.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1