Home | About | Partners | Contact Us

SourceForge Logo

Quick Links
Home
News
Status
Building XL
XL Mailing List

Understanding XL
Conceptual overview
XL examples
Inside XL

In depth
Browse SVN
Browse CVS (deprecated)
SourceForge Info
Contact

Other projects
GNU Project
The Mozart Project

XLR: Extensible Language and Runtime

The art of turning ideas into code

XL, an extensible programming language, implements the ideas of Concept Programming.
If you want to know more, you should start here.

Function pointers

Tuesday, April 8, 2008

Added support for function pointers in Revision 370. The real problem was support for overloading, as illustrated in this test, reproduced below:

procedure Foo (X : integer) is
    WriteLn "Foo ", X

procedure Foo (X : real) is WriteLn "Foo (real) ", X

procedure Bar (X : integer) is WriteLn "Bar ", X

type proc_ptr is procedure (X : integer)

to Invoke (callback : proc_ptr) is callback 3

Invoke Foo Invoke Bar

In that example, the problem is with Invoke Foo, which needs to be able to decide which Foo is to be selected (the first one in that case).

April 2008
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Mar  May


Copyright 2008 Christophe de Dinechin (Blog)
E-mail: XL Mailing List (polluted by spam, unfortunately)