# Search results for "Scalar Extension Methods"

30 results, page 2 of 2. Each result is an email: results with the same thread number are in the same thread. The link opens the thread as Markdown, find the email in it by its number.

More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

21. [[RFC] Scalar Type Hints v0.2](https://externals.io/message/80547.md) — email #80547 in thread #80442, by Jordi Boggiano on 2015-01-15
   > … INI entry, but it's still there. I agree that's a bad situation, but if a library uses strict types via declare, it is likely that it would also use **scalar** hints on its own **method** definitions. Not doing
22. [One API to rule them all? (Was: Extension Prepend Files)](https://externals.io/message/80393.md) — email #80393 in thread #80311, by Pierre Joye on 2015-01-12
   > … forgot to add foo (); in the example. Would it be possible to embed C code in a PHP function or **method** ? Yes, on the plan If yes, how do both codes access each other's data ? If foo() takes arguments …
23. [Perl extension](https://externals.io/message/8391.md) — email #8391 in thread #8391, by David Zhuo on 2004-03-05
   > … eval('use Foo; $x = Foo->new; **scalar** $x->**method**'); will return a **scalar** to $k but: $k = p2p_eval('[$x->**method**]'); will return an array to $k and $k = p2p_eval('{$x->**method**}'); will return a hash to $k. note …
24. [Perl extension](https://externals.io/message/8361.md) — email #8361 in thread #8292, by david on 2004-03-03
   > … and the next **method** call would return an array (the one after that would return **scalar**): Example: $x = new Perl("Test"); $y = $x->f(); // **scalar** context; perl_wantarray(); $y = $x->f(); // array context; $y = $x->f(); // **scalar** context; in m
25. [I think that "Function naming inconsistency" bug deservers more attention](https://externals.io/message/65245.md) — email #65245 in thread #65166, by Thomas Bley on 2013-01-28
   > … something like $str = new String('my_string_class'); echo $str->length(); But that's useless. It would be great if **method** calls on primitive types could be supported, like in Nikic' proof of concept (https://github.com/nikic/**scalar**_objects …
26. [Class Extension](https://externals.io/message/131856.md) — email #131856 in thread #131850, by Rowan Tommins [IMSoP] on 2026-07-10
   > … makes the case for using a different keyword like **extension** much stronger since that is not the case for an **extension**. Everything on an **extension** is type-checked at compile time, save some edge cases with **scalars**. I'm not …
27. [Proposal: interfaces for object to scalar type casting](https://externals.io/message/86270.md) — email #86270 in thread #86197, by Stanislav Malyshev on 2015-05-16
   > Hi! So, what do you think of a set of interfaces that allow userland objects to be used as **scalar** types? Some simple examples in PHP here: https://gist.github.com/guiwoda/5d16c8fb97d29e476d20 We already have CastToString, it's __toString …
28. [Invokation on __toString() for object used as array key](https://externals.io/message/77620.md) — email #77620 in thread #77510, by Florian Margaine on 2014-09-25
   > … Code is here: https://github.com/krakjoe/php-src/compare/addressof I think it makes more sense than a new **method** on all objects. You could use it for any kind of value: **scalar**, resource, object. Building an array of …
29. [Ruminations on PHP 5++](https://externals.io/message/71481.md) — email #71481 in thread #71481, by Adam Harvey on 2014-01-24
   > … been pretty stable.) Things that fall into that category for me include: size_t and int changes. Generics. Function and **method** naming rationalisation (whether through aliasing existing functions, or adding a new API through enabling **method** calls on **scalar** variables …
30. [Flexible type hinting](https://externals.io/message/44620.md) — email #44620 in thread #44619, by Ilia Alshanetsky on 2009-07-02
   > … will break nearly all existing code. We can provide means for authors as Hannes had pointed our earlier, of new **extensions** and if we choose to allow it internal **methods**/functions to have script type hints, but IMHO that only …
