Questions tagged [introspection]

A capability of some object-oriented programming languages to determine the type of an object at runtime.

Some OOP languages providing Type Introspection ability : Ruby, Objective-C, C++, Java, PHP, Perl, Python, Object Pascal, Actionscript (as3)

The introspection is done differently, depending on the form of program, it is performed upon: inspecting a source code or compiled byte-code is called compile-time introspection, while inspecting properties of running code is a run-time introspection.

For example, Java supports both types of introspection: users of run-time introspection typically perform it via , while compile-time introspection can be implemented with tools or .

http://en.wikipedia.org/wiki/Type_introspection

1021 questions
-3
votes
1 answer

Will a for in loop introspect the contents of an array

Given an array NSArray *myArray = @[@"hello", @5, @[@6, @7, @8]]; for (NSNumber *myNumber in myArray) { NSLog (@"%@", myNumber); } Would the output of the log message be 5 or 5 6 7 8. ie. Does the for/in loop introspect top level objects in a…
altyus
  • 606
  • 4
  • 13
1 2 3
68
69