Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:10:02+00:00 2026-06-10T06:10:02+00:00

I have something like this: class MyClass { static void DoSomething(arg1, arg2){…} } Via

  • 0

I have something like this:

class MyClass
{
   static void DoSomething(arg1, arg2){...}
}

Via reflection, I am able to get the ClassMirror of this class. From this point, how would I get to the concrete static function so I can call it.

Note that I tried to use:

ObjectMirror.invoke('DoSomething', [arg1, arg2]); 

which would initially appear to work, but it doesn’t support passing of complex types as arguments, This static function requires a complex type as one of it’s arguments.

Ideally, I’d like to get the ‘Function’ object that represents the static method so I can invoke it directly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:10:04+00:00Added an answer on June 10, 2026 at 6:10 am

    a. The current state of affairs is temporary. The plan is that the mirror API will wrap the arguments with mirrors for you.

    b. The API may eventually support a getProperty method that will give you a Future on the function object. However, you will not get a Function object directly, so this won’t really make any difference in this case.

    c. The core idea is that the API fundamentally works on mirrors. To make it more usable, it should accept non-mirrors as input and wrap them in mirrors for you. It will always return mirrors, and in some cases return futures on these. This is so the API works the same for remote and local cases.

    d. Resources for understanding mirrors:

    1. http://www.bracha.org/mirrors.pdf (academic paper, tough going)
    2. http://www.hpi.uni-potsdam.de/hirschfeld/events/past/media/100105_Bracha_2010_LinguisticReflectionViaMirrors_HPI.mp4 (a video, pre-Dart, discusses earlier Mirror systems)
    3. http://gbracha.blogspot.com/2010/03/through-looking-glass-darkly.html (an old, pre-dart, blog post of mine on mirrors)
    4. http://www.wirfs-brock.com/allen/posts/228 (Allen Wirfs-Brock’s blog. Allen was a mirror pioneer back in Smalltalk in the 90s)
    5. http://www.wirfs-brock.com/allen/posts/245

    You can also search my blog, or Allen Wirf-Brock’s for posts on the topic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I have something like this in C++: class MyClass{ private: int someVariable; int
I have a class, looks something like this: function MyClass() { this.array1 = [];
I have a class that looks something like this: public class MyClass { string
I have something like this: namespace MyNamespace { public partial class MyClass: UserControl {
I have something like this: class myClass { protected ICollection<Expression<Func<event_info, bool>>> _whereConditionsList = new
Suppose you have something like this: class intlist: def __init__(self,l = []): self.l =
Suppose I have something like this: class A { public B mem; public int
So let's say you have something like this: Class Person: height = 6' 0
I have something like this set up: class CategoryPage (webapp.RequestHandler): def get(self): ** DO
I have something like this in my Spring Application: public class Book{ public Book(){

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.