|
[jira] Created: (BOO-255) Allow outside scopes to be used by boo interprete: msg#00044lang.boo.devel
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/BOO-255 Here is an overview of the issue: --------------------------------------------------------------------- Key: BOO-255 Summary: Allow outside scopes to be used by boo interpreter Type: Improvement Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Boo Assignee: Reporter: Doug Holton Created: Sun, 20 Feb 2005 1:11 PM Updated: Sun, 20 Feb 2005 1:11 PM Description: Make it easier to run the boo interpreter from a regular boo or C# script by letting the caller provide an outside object that is used for name resolution lookups (via system.reflection). Perhaps make an overload of interpreter.Eval that accepts an object to be used for name lookups if the regular lookups fail. Or maybe create an "AddScope(instance as object)" method so that multiple outside objects can be used for name lookups. Or else use events or virtual methods to let us hook into the boo interpreter: class LocalInterpreter(InteractiveInterpreter): instance mytype as Type def constructor(inst): instance = inst mytype = inst.GetType() override def Lookup(name as string): //not possible class Person .... def ToString(): interpreter = LocalInterpreter(self) result = interpreter.Eval(formatstring) return result.ToString() if len(result.Errors) == 0 I don't know the best solution. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Patch review - partial classes, Rodrigo B. de Oliveira |
|---|---|
| Next by Date: | [jira] Closed: (BOO-255) Allow outside scopes to be used by boo interpreter, jira-yCVjj/EcxBJg9hUCZPvPmw |
| Previous by Thread: | [jira] Created: (BOO-254) Boo's builtin regular expresses + code completion = error., jira-yCVjj/EcxBJg9hUCZPvPmw |
| Next by Thread: | [jira] Closed: (BOO-255) Allow outside scopes to be used by boo interpreter, jira-yCVjj/EcxBJg9hUCZPvPmw |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |