logo       

[jira] Commented: (BOO-250) overloaded functions cannot be "first class fun: msg#00126

lang.boo.devel

Subject: [jira] Commented: (BOO-250) overloaded functions cannot be "first class functions"

[ http://jira.codehaus.org/browse/BOO-250?page=comments#action_47559 ]

Rodrigo B. de Oliveira commented on BOO-250:
--------------------------------------------

this sounds interesting, specially as a way to enable multimethods:

class Foo:
def bar(a as int):
print a
def bar(a as string);
print a

a = functionReturningObject()
f = Foo()
// today
(f as duck).bar(a)

// with your proposal
(f.bar)(a)

interesting...

> overloaded functions cannot be "first class functions"
> ------------------------------------------------------
>
> Key: BOO-250
> URL: http://jira.codehaus.org/browse/BOO-250
> Project: Boo
> Type: Bug
> Components: Compiler
> Versions: 0.5
> Environment: Latest SVN.
> Reporter: Arron Washington
> Assignee: Rodrigo B. de Oliveira
> Fix For: 0.5.6

>
>
> Functions that are overloaded (such as double.Parse and string.Format) cannot
> be used as first class functions because the compiler cannot resolve to any
> one of the overloaded functions.

--
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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise