What's new in Tiburon

This is a discussion on What's new in Tiburon within the Delphi forums in Programming Languages category; When it's ready... ;-)...

Go Back   Application Development Forum > Programming Languages > Delphi

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 07-17-2008, 12:38 PM
Vincent Bergeron
Guest
 
Default Re: What's new in Tiburon

When it's ready... ;-)


Reply With Quote
  #12  
Old 07-17-2008, 01:28 PM
Alchemist
Guest
 
Default Re: What's new in Tiburon


"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. ;-)
>
>



Reply With Quote
  #13  
Old 07-17-2008, 01:40 PM
Lee Grissom
Guest
 
Default Re: What's new in Tiburon

Anyone know if there is "edit and continue" while debugging type of
functionality?
--
Lee


Reply With Quote
  #14  
Old 07-17-2008, 01:50 PM
Marc Rohloff [TeamB]
Guest
 
Default Re: What's new in Tiburon

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
Reply With Quote
  #15  
Old 07-17-2008, 02:40 PM
Craig Stuntz [TeamB]
Guest
 
Default Re: What's new in Tiburon

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
Reply With Quote
  #16  
Old 07-17-2008, 03:15 PM
Remy Lebeau \(TeamB\)
Guest
 
Default Re: What's new in Tiburon


"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



Reply With Quote
  #17  
Old 07-17-2008, 03:18 PM
Remy Lebeau \(TeamB\)
Guest
 
Default Re: What's new in Tiburon


"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


Reply With Quote
  #18  
Old 07-17-2008, 04:01 PM
Michael Zeringue
Guest
 
Default Re: What's new in Tiburon



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.
Reply With Quote
  #19  
Old 07-17-2008, 04:04 PM
TJC Support
Guest
 
Default Re: What's new in Tiburon

"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


Reply With Quote
  #20  
Old 07-17-2008, 04:10 PM
Tom Corey
Guest
 
Default Re: What's new in Tiburon

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.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:17 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.