Search

The type system

Everything is a Type, Class types, Hierarchy, Primitives, Wrapper types.
From the documentation


Type-safe enumerations

Further reading.
From the documentation


Type duplication in xpcli injections

.
From the news


RFC #0148: Bytes type

friebe Scope of Change A new type wrapper class lang.types.Bytes will be added.
From the news


RFC #0100: IllegalArgumentException for Type hints

friebe Scope of Change Methods declared with type hints will throw an IllegalArgumentException when type mismatches occur.
From the news


Type hinting discussion and contracts

friebe In the recently ongoing type-hints discussion on the PHP internals mailinglist (see also the PHP Wiki), an interesting proposal was made.
From the news


5.6.5-RELEASE: Type casting

friebe This release implements functionality suggested long ago in RFC #0010 - type casting.
From the news


Simplifying sourcecode by using type hints

friebe With the implementation of RFC #0100 (IllegalArgumentException for Type hints) I started migrating code which was manually checking arguments being instances of a certain class to type hints: For example, this piece of sourcecode from the xml.Node class: public function addChild($child) { if (!is('Node', $child)) { throw new IllegalArgumentException( 'Parameter child must be an xml.Node (given: '.xp::typeOf($child).')' ); } // ...
From the news


RFC #0038: Type wrappers

friebe Scope of Change Wrapper types for all primitive types will be created and added to the new package lang.type.
From the news


RFC #0106: Array access / iteration / type boxing / generics

friebe Scope of Change The lang.types.ArrayList class and the relevant classes from util.collections will be changed to support array access (read/write) and foreach() iteration.
From the news


Results

Found 38 items in 0.017 seconds.