[Cuis-dev] reflection in Cuis

Hernán Wilkinson hernan.wilkinson at 10pines.com
Fri Jun 14 10:47:58 PDT 2024


well, they are all kind of Collection :-) and if all you need is what
Collection defines as protocol is good enough. ... that is the whole idea
behind polymorphism. That does not mean that maybe returning an Array
instead of a Set is better in some message, but we should see case by case,
how it is used that message, etc.


On Fri, Jun 14, 2024 at 2:32 PM Mark Volkmann via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> I've learned how to discover lots of things using reflection, but not the
> following. Are there methods that return these?
>
> - all installed packages
> - all class categories
> - all classes in a given class category
> - all message categories used by a given class
> - the source code for a given method as a string or tree of AST nodes
>
> There seems to be some inconsistencies in the kind of object returned by
> the reflection methods. I've encountered at least these so far: Array, Set,
> IdentitySet, and OrderCollection. I understand the distinction between
> these collection types, but it's not clear why the reflection methods don't
> all return the same kind of collection.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240614/788438bf/attachment-0001.htm>


More information about the Cuis-dev mailing list