What's new in TiburonThis is a discussion on What's new in Tiburon within the Delphi forums in Programming Languages category; When it's ready... ;-)... | ||||||||
| | ||||||||
| ||||||||
| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#11
| |||
| |||
| When it's ready... ;-) |
|
#12
| |||
| |||
| "Vincent Bergeron" <info@vincentbergeron.com> wrote in message news:487f7541@newsgroups.borland.com... > When it's ready... ;-) Hopefully before september when my SA becomes a waste of money. ;-) > > |
|
#13
| |||
| |||
| Anyone know if there is "edit and continue" while debugging type of functionality? -- Lee |
|
#14
| |||
| |||
| On 17 Jul 2008 08:35:47 -0700, Tom Corey wrote: > I must be dense - I am having trouble getting the whole concept of > anonymous methods. Can't we already achieve the same effect with > 'embedded' functions and procedures? 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. -- Marc Rohloff [TeamB] marc -at- marc rohloff -dot- com |
|
#15
| |||
| |||
| Marc Rohloff [TeamB] wrote: > Apart from what Craig already mentioned, anonymous functions are > really closures in that they capture their state. > So guessing at the syntax a bit: Note that different platforms do variable capture differently. "Capture by reference" and "capture by value" could both be considered valid. I seem to recall that C# and JavaScript do it differently, for example. -- Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz How to ask questions the smart way: http://www.catb.org/~esr/faqs/smart-questions.html |
|
#16
| |||
| |||
| "MartinK" <martin _ at _ autag - point - com> wrote in message news:487ef915$1@newsgroups.borland.com... > Be that as it may, COM, ActiveX etc. all good and well, but hardly groud > breaking. Well, maybe not ground-breaking in the sense that it is new technology, but certainly ground-breaking in that the editors and wizards are completely redesigned and much more stable now than in previous versions. > I'd like to see some examples of "new language features like Generics > and Anonymous Methods" as mentioned in Nick's post. Is this .net > or win32 as well? Generics were originally a .NET technology that are now being migrated to Win32 as well. Anonymous methods is something completely new, though. Gambit |
|
#17
| |||
| |||
| "Jens Mühlenhoff" <j.muehlenhoff@accurata.com> wrote in message news:487f5c36$1@newsgroups.borland.com... > So is this a "Delphi-only" feature and how will > it interact with C++ Builder? C++ will not be able to create anonymous methods, but it will be able to use them when passed from Delphi code. Same with generics - C++ can't (yet) produce generics that Delphi can consume, but it will be able to consume Delphi generics. Gambit |
|
#18
| |||
| |||
| Tom Corey wrote: > Craig Stuntz [TeamB] wrote: > >> Try to assign an "embedded" procedure to an event handle or, for >> example. Or to any other method pointer. It doesn't work. > > I guess that it's something I'm going to have to see in action to > really grok. > >> consider this as one step towards lambda expressions. > > Yet another new-fangled thing that I've heard of but don't understand > > :-) Everything old is new again... Lambda expressions date from the 1960s and are older than pascal. They may be seeing a revival in popular CS, but they are anything but new-fangled. ![]() |
|
#19
| |||
| |||
| "Michael Zeringue" <michael@no.smap.zclient.com> wrote in message news:487fa514@newsgroups.borland.com... > > Everything old is new again... > > Lambda expressions date from the 1960s and are older than pascal. They > may be seeing a revival in popular CS, but they are anything but > new-fangled. ![]() How 'bout that. And I thought a Lambda expression was a frat guy with a big sh*t-eatin' grin on his face. Learn something new every day.... :^) Cheers, Van |
|
#20
| |||
| |||
| Michael Zeringue wrote: > Lambda expressions date from the 1960s and are older than pascal. > They may be seeing a revival in popular CS, but they are anything but > new-fangled. ![]() Yeah, well, I date from the 1960s, too, which could explain my difficulty in wrapping my head around things I haven't done before. |
![]() |
| 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.