Mozy Online Backup: 2GB Free. Automatic. Secure.
Subject: [jira] Commented: (BOO-951) Add introspection feature to IQuackFu - msg#00071
List: lang.boo.devel
[
http://jira.codehaus.org/browse/BOO-951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120728
]
Cedric Vivier commented on BOO-951:
-----------------------------------
Maybe having an IQuackFuWithIntrospection is better than changing the IQuackFu,
this way the supporting applications won't have to deal with a
NotImplementedException on non-introspective quacks.
>
Add introspection feature to IQuackFu
>
-------------------------------------
>
>
Key: BOO-951
>
URL: http://jira.codehaus.org/browse/BOO-951
>
Project: Boo
>
Issue Type: Improvement
>
Components: Runtime (Boo.Lang)
>
Affects Versions: 0.8
>
Reporter: Cedric Vivier
>
Assignee: Cedric Vivier
>
Priority: Minor
>
Fix For: 0.8.1
>
>
>
It would be nice to have some introspection features on IQuackFu.
>
It could then be supported - for instance for autocompletion of 'quackers' -
>
in booish (currently booish2) ... and others.
>
I propose GetMembers(), which will return an IEnumerable of a new
>
QuackFuMember struct :
>
struct QuackFuMember:
>
name as string
>
IsMethod as bool
>
IsGetter as bool
>
IsSetter as bool
>
ArgumentsNames as (string) //return the names for each argument (if any)
>
ArgumentsTypes as (object) //return the expected types for each argument
>
(if any)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
[jira] Created: (BOO-951) Add introspection feature to IQuackFu
Add introspection feature to IQuackFu
-------------------------------------
Key: BOO-951
URL: http://jira.codehaus.org/browse/BOO-951
Project: Boo
Issue Type: Improvement
Components: Runtime (Boo.Lang)
Affects Versions: 0.8
Reporter: Cedric Vivier
Assignee: Cedric Vivier
Priority: Minor
Fix For: 0.8.1
It would be nice to have some introspection features on IQuackFu.
It could then be supported - for instance for autocompletion of 'quackers' -
in booish (currently booish2) ... and others.
I propose GetMembers(), which will return an IEnumerable of a new QuackFuMember
struct :
struct QuackFuMember:
name as string
IsMethod as bool
IsGetter as bool
IsSetter as bool
ArgumentsNames as (string) //return the names for each argument (if any)
ArgumentsTypes as (object) //return the expected types for each argument
(if any)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
Next Message by Date:
click to view message preview
[jira] Created: (BOO-952) Remove all handlers attached to an event though SomeEvent = null syntax
Remove all handlers attached to an event though SomeEvent = null syntax
-----------------------------------------------------------------------
Key: BOO-952
URL: http://jira.codehaus.org/browse/BOO-952
Project: Boo
Issue Type: Improvement
Components: Compiler, Emitter
Affects Versions: 0.8
Reporter: Cedric Vivier
Assignee: Cedric Vivier
Priority: Minor
Fix For: 0.8.1
Currently we cannot remove all handlers attached to an event as simply as in C#
: SomeEvent = null
Implement this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
Previous Message by Thread:
click to view message preview
[jira] Created: (BOO-951) Add introspection feature to IQuackFu
Add introspection feature to IQuackFu
-------------------------------------
Key: BOO-951
URL: http://jira.codehaus.org/browse/BOO-951
Project: Boo
Issue Type: Improvement
Components: Runtime (Boo.Lang)
Affects Versions: 0.8
Reporter: Cedric Vivier
Assignee: Cedric Vivier
Priority: Minor
Fix For: 0.8.1
It would be nice to have some introspection features on IQuackFu.
It could then be supported - for instance for autocompletion of 'quackers' -
in booish (currently booish2) ... and others.
I propose GetMembers(), which will return an IEnumerable of a new QuackFuMember
struct :
struct QuackFuMember:
name as string
IsMethod as bool
IsGetter as bool
IsSetter as bool
ArgumentsNames as (string) //return the names for each argument (if any)
ArgumentsTypes as (object) //return the expected types for each argument
(if any)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
Next Message by Thread:
click to view message preview
[jira] Commented: (BOO-951) Add introspection feature to IQuackFu
[
http://jira.codehaus.org/browse/BOO-951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120990
]
Cedric Vivier commented on BOO-951:
-----------------------------------
Modified API :
- renamed member.Type to member.Kind to not mix up with types as in System.Type
- replaced booleans by flagged enum for specifying member kind
- added optional ReturnType info.
[Flags]
enum QuackFuMemberKind:
Unknown = 0 #0000
Method = 1 #0001
Getter = 2 #0010
Setter = 4 #0100
Property = 6 #0110 Getter|Setter
struct QuackFuMember:
Name as string
Kind as QuackFuMemberKind
ReturnType as Type #can be null
ArgumentNames as (string) #can be null
ArgumentTypes as (Type) #can be null
override def ToString() as string #returns the 'boo-ish' string
representation of the member
> Add introspection feature to IQuackFu
> -------------------------------------
>
> Key: BOO-951
> URL: http://jira.codehaus.org/browse/BOO-951
> Project: Boo
> Issue Type: Improvement
> Components: Runtime (Boo.Lang)
> Affects Versions: 0.8
> Reporter: Cedric Vivier
> Assignee: Cedric Vivier
> Priority: Minor
> Fix For: 0.8.1
>
>
> It would be nice to have some introspection features on IQuackFu.
> It could then be supported - for instance for autocompletion of 'quackers' -
> in booish (currently booish2) ... and others.
> I propose GetMembers(), which will return an IEnumerable of a new
> QuackFuMember struct :
> struct QuackFuMember:
> name as string
> IsMethod as bool
> IsGetter as bool
> IsSetter as bool
> ArgumentsNames as (string) //return the names for each argument (if any)
> ArgumentsTypes as (object) //return the expected types for each argument
> (if any)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email