| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#21
| |||
| |||
| , | | consider this as one step towards lambda expressions. | | Yet another new-fangled thing that I've heard of but don't understand http://en.wikipedia.org/wiki/Lambda_calculus -- Q 07/17/2008 13:27:43 XanaNews Version 1.17.5.7 [Q's Salutation mod] |
|
#22
| |||
| |||
| Remy Lebeau (TeamB) a écrit : > Generics were originally a .NET technology that are now being migrated to > Win32 as well. Anonymous methods is something completely new, though. Actually, .NET already has anonymous methods as well, and quie useful they can be. Joanna -- Joanna Carter [TeamB] Consultant Software Engineer |
|
#23
| |||
| |||
| Joanna Carter wrote: > Actually, .NET already has anonymous methods as well, and quie useful > they can be. He meant "...in Delphi." -- Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz IB 6 versions prior to 6.0.1.6 are pre-release and may corrupt your DBs! Open Edition users, get 6.0.1.6 from http://mers.com |
|
#24
| |||
| |||
| Q Correll wrote: > http://en.wikipedia.org/wiki/Lambda_calculus I didn't say I never read about it, just that I don't understand it :-) |
|
#25
| |||
| |||
| > I didn't say I never read about it, just that I don't understand it Seconded - can someone tell me what lambda expressions are in the context of programming languages? Looking at that Wikipedia page causes my eyes to start rolling back in my head... |
|
#26
| |||
| |||
| "Marc Rohloff [TeamB]" <marc@nospam.marcrohloff.com> wrote in message news:1don5syewof1t.dlg@dlg.marcrohloff.com... <SNIP> > Apart from what Craig already mentioned, anonymous functions are > really closures in that they capture their state. > So guessing at the syntax a bit: > > type > TSimpleProcedure = reference to procedure; > > function MakeProcedure(const name:string; > start:integer):TSimpleProcedure; > var i:integer; > begin > i := start; > result := procedure begin > WriteLn(name, '=', i); > inc(i); > end; > end; > > var > p1, p2:TSimpleProcedure; > begin > p1 := MakeProcedure('First', 1); > p2 := MakeProcedure('Second', 42); > p1(); > p2(); > p1(); > p2(); > end; > > Should print something like: > First = 1 > Second = 42 > First = 2 > Second = 43 > > I regularly use C# anonymous methods like this to remember something > that I want to be done later. That stuff reminds me of closures in Lua (www.lua.org) - quite handy at times :-) cheers, Paul. |
|
#27
| |||
| |||
| "Nathanial Woolls" <nwoolls@nospam.gmail.com> wrote in message news:487fd1ff@newsgroups.borland.com... > > Seconded - can someone tell me what lambda expressions are in the context > of programming languages? Looking at that Wikipedia page causes my eyes to > start rolling back in my head... This seems a pretty good starting point: http://blogs.msdn.com/ericwhite/page...pressions.aspx -- Wayne Niddery - TeamB (www.teamb.com) Winwright, Inc. (www.winwright.ca) |
|
#28
| |||
| |||
| > This seems a pretty good starting point: > > http://blogs.msdn.com/ericwhite/page...pressions.aspx Wonderful, thanks very much! |
|
#29
| |||
| |||
| Rick Carter wrote: >> "Vincent Bergeron" <info@vincentbergeron.com> wrote in message >> news:487f7541@newsgroups.borland.com... >>> When it's ready... ;-) > > Alchemist wrote: >> Hopefully before september when my SA becomes a waste of money. ;-) > > I wouldn't count on a release before September. I consider it a worthwhile > investment to renew my SA annually, rather than using it as a one-time > "gamble" on the release date of the next version. > > Rick Carter > carterrk@despammed.com > Chair, Delphi/Paradox SIG, Cincinnati PC Users Group > > --- posted by geoForum on http://delphi.newswhat.com How many times gamble should it be, then??? <G> David Erbas-White |
|
#30
| |||
| |||
| >"Vincent Bergeron" <info@vincentbergeron.com> wrote in message >news:487f7541@newsgroups.borland.com... >> When it's ready... ;-) Alchemist wrote: >Hopefully before september when my SA becomes a waste of money. ;-) I wouldn't count on a release before September. I consider it a worthwhile investment to renew my SA annually, rather than using it as a one-time "gamble" on the release date of the next version. Rick Carter carterrk@despammed.com Chair, Delphi/Paradox SIG, Cincinnati PC Users Group --- posted by geoForum on http://delphi.newswhat.com |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.