BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using Delphi 2006 to target .NET 2.0
Goto page 1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical
View previous topic :: View next topic  
Author Message
Daniel \"sakura\" Wischne
Guest





PostPosted: Fri Mar 17, 2006 12:03 pm    Post subject: Using Delphi 2006 to target .NET 2.0 Reply with quote



Hi,

I posted an article on my blog about using the Delphi 2006 .NET compiler to
target the .NET 2.0 framework. It works, have fun!

http://delphi-notes.blogspot.com/2006/03/eager-to-use-delphinet-for-net-20.html

or in short

http://tinyurl.com/k8r5s

--
Regards,
Daniel

Blog: http://delphi-notes.blogspot.com

Co-Admin: www.delphipraxis.net
* * The German Delphi-Forum * *
Back to top
Joanna Carter [TeamB]
Guest





PostPosted: Fri Mar 17, 2006 12:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote



"Daniel "sakura" Wischnewski" <dwischnewski-remove_that@no-spam-borland.com>
a écrit dans le message de news: 441a9983$1 (AT) newsgroups (DOT) borland.com...

| I posted an article on my blog about using the Delphi 2006 .NET compiler
to
| target the .NET 2.0 framework. It works, have fun!

Ok, but I bet it wouldn't compile this...

TMyClass<T> = class
private
fValue: T;
public
property Value: T
read fValue;
end;

<gd&r>

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Back to top
Uffe Kousgaard
Guest





PostPosted: Fri Mar 17, 2006 12:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote



"Daniel "sakura" Wischnewski" <dwischnewski-remove_that@no-spam-borland.com>
wrote in message news:441a9983$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

I posted an article on my blog about using the Delphi 2006 .NET compiler
to target the .NET 2.0 framework. It works, have fun!

Excellent work. Could you post the final executable to attachments, so we
can try and see it?
Back to top
Hallvard Vassbotn
Guest





PostPosted: Fri Mar 17, 2006 1:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

"Joanna Carter [TeamB]" <joanna (AT) not (DOT) for.spam> wrote in message
news:441a9f30 (AT) newsgroups (DOT) borland.com...
Quote:
Ok, but I bet it wouldn't compile this...
TMyClass<T> = class

No Wink.

But I *think* it would be possible to create generic code dynamically via
Reflection.Emit... That would be a bit complex, of course... ;)

Great post Daniel!, linked to you here:
http://hallvards.blogspot.com/2006/03/compiling-delphi-code-for-net-20.html
Back to top
Daniel \"sakura\" Wischne
Guest





PostPosted: Fri Mar 17, 2006 1:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

Quote:
Ok, but I bet it wouldn't compile this...

Well... Wink no, but I didn't say it supports everything .NET 2.0 does, did

I?

Quote:

gd&r


and don't forget to hide, too >:-)

--
Regards,
Daniel

Blog: http://delphi-notes.blogspot.com

Co-Admin: www.delphipraxis.net
* * The German Delphi-Forum * *
Back to top
Daniel \"sakura\" Wischne
Guest





PostPosted: Fri Mar 17, 2006 1:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

Quote:
Excellent work. Could you post the final executable to attachments, so we
can try and see it?

Thanks and I have update the entry to give a download link Smile


--
Regards,
Daniel

Blog: http://delphi-notes.blogspot.com

Co-Admin: www.delphipraxis.net
* * The German Delphi-Forum * *
Back to top
John Jacobson
Guest





PostPosted: Fri Mar 17, 2006 3:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

marc hoffman <mh (AT) spamobjects (DOT) com> wrote in message
<441abdf3 (AT) newsgroups (DOT) borland.com>
Quote:
What's the syntax for using generics? ;P

It's called C++. Maybe you've heard of it? It has had generics, of a sort, for
ages.

--
***Free Your Mind***

Posted with JSNewsreader Preview 0.9.4.2155
Back to top
marc hoffman
Guest





PostPosted: Fri Mar 17, 2006 3:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

Daniel,

Quote:
I posted an article on my blog about using the Delphi 2006 .NET compiler to
target the .NET 2.0 framework. It works, have fun!

Excellent. What's the syntax for using generics? ;P

--
marc hoffman
Chief Architect
RemObjects Software
Back to top
Kevin B
Guest





PostPosted: Fri Mar 17, 2006 3:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

John Jacobson wrote:
Quote:
It's called C++. Maybe you've heard of it? It has had generics, of a sort, for
ages.

Ahhhh..... so it's just a simple matter of flicking that IL code
generation option in the C++ compiler then.... Wink *RIGHT*

Cheers,
Kevin.
Back to top
Captain Jake
Guest





PostPosted: Fri Mar 17, 2006 4:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

"Kevin B" <kevin (AT) berryN0SPAMware (DOT) com> wrote in message
news:441ac62e$1 (AT) newsgroups (DOT) borland.com...
Quote:
John Jacobson wrote:
It's called C++. Maybe you've heard of it? It has had generics, of a
sort, for ages.

Ahhhh..... so it's just a simple matter of flicking that IL code
generation option in the C++ compiler then.... Wink *RIGHT*

Only if you want to use .NET. Works fine for deployment to all current
operating systems as Win32 code. <g>
Back to top
Kevin B
Guest





PostPosted: Fri Mar 17, 2006 4:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

Captain Jake wrote:
Quote:
Only if you want to use .NET. Works fine for deployment to all current
operating systems as Win32 code. <g

^^^^ read the subject again Wink
Back to top
Captain Jake
Guest





PostPosted: Fri Mar 17, 2006 4:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

"John Jacobson" <jake@j[nospam]snewsreader.com> wrote in message
news:441ac0b6$1 (AT) newsgroups (DOT) borland.com...
Quote:
marc hoffman <mh (AT) spamobjects (DOT) com> wrote in message
441abdf3 (AT) newsgroups (DOT) borland.com
What's the syntax for using generics? ;P

It's called C++. Maybe you've heard of it? It has had generics, of a sort,
for
ages.

By the way, I was being sarcastic. See, I don't see any reason why
developers would need to rush to .NET 2.0 (or .NET in general for tha
matter). YMMV.
Back to top
Captain Jake
Guest





PostPosted: Fri Mar 17, 2006 8:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

"Hallvard Vassbotn" <hallvardvassbotn@nospam-c2i.net> wrote in message
news:441aa84f (AT) newsgroups (DOT) borland.com...
Quote:
"Joanna Carter [TeamB]" <joanna (AT) not (DOT) for.spam> wrote in message
news:441a9f30 (AT) newsgroups (DOT) borland.com...
Ok, but I bet it wouldn't compile this...
TMyClass<T> = class

No Wink.

But I *think* it would be possible to create generic code dynamically via
Reflection.Emit... That would be a bit complex, of course... Wink

I have to laugh at all the hubbub over generics in .NET 2.0. C++ has had
templates since the early 90's and yet you'll be hard-pressed to find many
usages in most actual C++ production code out there in the real world. Also,
if there is an algorithm that was simply crying out for generics, why wasn't
it already coded in C++ by now? Are generics in .NET really solving any
problem that up to this point had no decent solution available? I don't see
it.

There is a verse in the Bible (a book that only us staunch atheists and a
very small number of Christians seems to read anymore these days) about
putting new wine in old vessels (or vice versa) that seems apropos at this
point.

Maybe DevCo could come out with some REAL language innovations. That would
be nice to see in this industry. Some actual innovation. I remember back
when language innovations were actually improving peoples' lives. Today's
youngin's probably have no idea what I'm talking about.
Back to top
Joanna Carter [TeamB]
Guest





PostPosted: Fri Mar 17, 2006 9:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

"Captain Jake" <nospam (AT) nospam (DOT) com> a écrit dans le message de news:
441b0e98$1 (AT) newsgroups (DOT) borland.com...

| I have to laugh at all the hubbub over generics in .NET 2.0. C++ has had
| templates since the early 90's and yet you'll be hard-pressed to find many
| usages in most actual C++ production code out there in the real world.
Also,
| if there is an algorithm that was simply crying out for generics, why
wasn't
| it already coded in C++ by now? Are generics in .NET really solving any
| problem that up to this point had no decent solution available? I don't
see
| it.

I am in the middle of porting a very large project from Win32 to .NET and
have found that generics have reduced the code I write, sometimes up to 80%.

This is very much production code. It is not limited to generic containers,
it includes many classes and interfaces that provide all manner of services
and facilities.

For me, .NET generics are providing solutions that would have taken a lot
more time and code in Win32.

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Back to top
TObject
Guest





PostPosted: Fri Mar 17, 2006 9:03 pm    Post subject: Re: Using Delphi 2006 to target .NET 2.0 Reply with quote

"Captain Jake" <nospam (AT) nospam (DOT) com> wrote in message news:441b0e98$1 (AT) newsgroups (DOT) borland.com...
Quote:
it already coded in C++ by now? Are generics in .NET really solving any
problem that up to this point had no decent solution available? I don't see
it.

I see it very well. An astonishingly great percentage of my code before
generics was implementing various lists and collections over and over
and over again.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Page 1 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.