C# without .net?

  • Thread starter Thread starter Natan
  • Start date Start date
N

Natan

I was wondering if is it possible to create a program with c# without
..net... i mean, something like basic C, only pointers, notion of ints,
shorts, etc... everything unsafe with C#...

Once C# is a standard, is there any possibility to create something like
this? Maybe a compiler other than that included in .NET SDK... like
mono, dotgnu or other....

Is it possible?
 
Natan said:
I was wondering if is it possible to create a program with c# without
.net... i mean, something like basic C, only pointers, notion of ints,
shorts, etc... everything unsafe with C#...

Once C# is a standard, is there any possibility to create something like
this? Maybe a compiler other than that included in .NET SDK... like
mono, dotgnu or other....

Is it possible?

See
http://www.pobox.com/~skeet/csharp/faq/index.html#framework.required

Don't forget there's the whole business of garbage collection, bounds
checking etc which requires the CLR - if you take that away, you might
as well just write C++.
 
Of course it's "possible." C# is merely a programming language. It is a
language designed with .NET in mind, but there's no reason it can't be
compiled into native code. Just keep in mind that the framework would be
unavailable.

Pete
 
Adie said:
Jon, hope you don't mind, but:

"Where is the C# specification?
/*...*/
They the same in all important respects as far as I can tell..."
^
Maybe an "are"?

Yup, cheers - fixed now :)

(And far from minding, I'd encourage everyone to pick the FAQ apart as
much as possible!)
 
Pete Davis said:
Of course it's "possible." C# is merely a programming language. It is a
language designed with .NET in mind, but there's no reason it can't be
compiled into native code. Just keep in mind that the framework would be
unavailable.

Pete


I actually think it is a very nice language for expressing algorithms
clearly. We should start thinking about a portable subset of C# that would
not require much of the Framework. It might be quite popular for, among
other things, embedded systems.


--

Michael A. Covington - Artificial Intelligence Ctr - University of Georgia

"In the core C# language it is simply not possible to have an uninitialized
variable, a 'dangling' pointer, or an expression that indexes an array
beyond its bounds. Whole categories of bugs that routinely plague C and C++
programs are thus eliminated." - A. Hejlsberg, The C# Programming Language
 
Michael A. Covington said:
I actually think it is a very nice language for expressing algorithms
clearly. We should start thinking about a portable subset of C# that would
not require much of the Framework. It might be quite popular for, among
other things, embedded systems.

Compact Framework?

Mike
 
I was wondering if is it possible to create a program with c# without
.net... i mean, something like basic C, only pointers, notion of ints,
shorts, etc... everything unsafe with C#...

It is my understanding that C# is tied to the CLI specification.

..NET with its CLR is a CLI-implementation. .NET is a Microsoft product, C#
code is not .NET-specific but does require a CLI implementation to run.

IBM might launch its own CLI implementation one of these days named Scissors
or something (it would have to be a term destructive by nature towards
either a dot or a net).

Martin.
 
Back
Top