| View previous topic :: View next topic |
| Author |
Message |
Daniel \"sakura\" Wischne Guest
|
|
| Back to top |
|
 |
Joanna Carter [TeamB] Guest
|
Posted: Fri Mar 17, 2006 12:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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
|
Posted: Fri Mar 17, 2006 12:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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
|
Posted: Fri Mar 17, 2006 1:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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 .
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
|
Posted: Fri Mar 17, 2006 1:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
| Quote: | Ok, but I bet it wouldn't compile this...
Well... no, but I didn't say it supports everything .NET 2.0 does, did |
I?
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
|
Posted: Fri Mar 17, 2006 1:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
| 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  |
--
Regards,
Daniel
Blog: http://delphi-notes.blogspot.com
Co-Admin: www.delphipraxis.net
* * The German Delphi-Forum * * |
|
| Back to top |
|
 |
John Jacobson Guest
|
Posted: Fri Mar 17, 2006 3:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
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
|
Posted: Fri Mar 17, 2006 3:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
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
|
Posted: Fri Mar 17, 2006 3:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
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.... *RIGHT*
Cheers,
Kevin. |
|
| Back to top |
|
 |
Captain Jake Guest
|
Posted: Fri Mar 17, 2006 4:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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.... *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
|
Posted: Fri Mar 17, 2006 4:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
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  |
|
| Back to top |
|
 |
Captain Jake Guest
|
Posted: Fri Mar 17, 2006 4:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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
|
Posted: Fri Mar 17, 2006 8:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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 .
But I *think* it would be possible to create generic code dynamically via
Reflection.Emit... That would be a bit complex, of course...
|
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
|
Posted: Fri Mar 17, 2006 9:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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
|
Posted: Fri Mar 17, 2006 9:03 pm Post subject: Re: Using Delphi 2006 to target .NET 2.0 |
|
|
"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 |
|
 |
|