<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[#RocketLang update:I implemented some additional library functions, namely:- &#96;dynamic_type(x)&#96;: returns the actual runtime type of the object.]]></title><description><![CDATA[<p><a href="https://infosec.exchange/tags/RocketLang" rel="tag">#<span>RocketLang</span></a> update:<br />I implemented some additional library functions, namely:<br />- `dynamic_type(x)`: returns the actual runtime type of the object. E.g., if the variable x is declared as `SomeProtocol` but you assign an instance of a structure implementing that protocol, it will give you the structure type.<br />- `is_subtype(T1, T2)` tests if T1 is a subtype of T2, similar to Python's `issubclass()`<br />- `os.scandir()` for getting the contents of a directory</p><p>I also added a generic iterator that works with `ArrayList`s and array `Slice`s. All it needs is that the underlying container can be queried by `container[index]` and can be queried for its length.<br />(I actually already had this implemented for ArrayLists, just made it more generic to make it work for Slices, too.)</p><p>This actually required fixing a "bug" in checking whether a type implements a protocol. Implemented naively, that lead into an infinite recursion. (I was aware of that and had a FIXME in my code.) Now I accidentally triggered that and figured it was a good time to actually fix that.</p>]]></description><link>https://board.circlewithadot.net/topic/ac061d49-bb9f-4d66-af75-1fb0010feaed/rocketlang-update-i-implemented-some-additional-library-functions-namely-dynamic_type-x-returns-the-actual-runtime-type-of-the-object.</link><generator>RSS for Node</generator><lastBuildDate>Mon, 25 May 2026 13:01:48 GMT</lastBuildDate><atom:link href="https://board.circlewithadot.net/topic/ac061d49-bb9f-4d66-af75-1fb0010feaed.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Apr 2026 15:52:48 GMT</pubDate><ttl>60</ttl></channel></rss>