i think jobsOverseas should be a delegate
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
C# 4.0
Collapse
X
-
-
Originally posted by threadedWhenever anyone asks my thoughts on C++
And why would they do that then Ted?
Is that like when you're standing at a bus stop, or washing your Porche, or something?
Or do they do it to see what a big feckin' eejot you are?
</Fr Dougal>Last edited by bogeyman; 21 March 2006, 20:10.
You've come right out the other side of the forest of irony and ended up in the desert of wrong.
Comment
-
Originally posted by cswdI love the comments from C++ moaning about us C# guys being lame because we can't get C++.
Hey at least I get to write apps rather than pissing around with bloody memory leaks and null pointers.
As far as I can see, C# is mostly a case of . instead of -> . I've never done any, but it does look like quite a neat language it has to be said.Will work inside IR35. Or for food.Comment
-
C# is a good thing, but they really need to give better control over memory management, ie programmer knows things better and if he says that this chunk of memory is not needed than GC should release it immediately - in theory GC.Collect() does this to an extent, but there should be cheaper methods to release just given memory object.
Memory leaks can still happen in .NET.Comment
-
Originally posted by AtWC# is a good thing, but they really need to give better control over memory management, ie programmer knows things better and if he says that this chunk of memory is not needed than GC should release it immediately - in theory GC.Collect() does this to an extent, but there should be cheaper methods to release just given memory object.
But this is about .NET CLR, and nothing to do with C# as such. It's often a false comparison with C++ as C++ is just a language, whereas the likes of Java and C# are languages tied to particular environments. I always thought it was a shame you couldn't just use Java in the same way as C++ (i.e. make native Windows calls and produce a native binary) as then I would have considered using Java rather than C++ for the 99% of my application that wasn't doing speed critical graphics stuff, and I'd do the same with C# now. Unfortunately it doesn't work like that, and to use Java means the Java Runtime, and to use C# means .NET, and that involves a much bigger change than just using a different language.
And in the last half hour I've done a C# program! WooHoo!Will work inside IR35. Or for food.Comment
-
Originally posted by VectraManI never quite saw the point of the lazy garbage collection,
It is true that .NET CLR does all this rather than C#, but they should have created additional pro options in CLR and exposed it in a pro lang like C#. Say they added pointers to C# - sure it requires extra effort to declare code as unsafe, but at least this option is there and I found that in some cases using pointers can easily double performance.
It would really be good if C# has .NET's equivalent of ASM operator - that's why top wish for the language.Comment
-
Originally posted by cswdThere are pointers in C# (!). See language reference.
As i said usage of pointers can double performance - direct access to memory bypasses range checking, which is fairly costly. Naturally their usage is only worth at real hotspots in the code.Comment
-
Originally posted by cswdIn the end it doesn't matter - it may end up being converted to pointers when it's assembled by the JIT.Comment
-
Originally posted by AtWWell, jobsOverseas is not declared and Agenda() will never run as its private and no other functions in class use it. The funniest thing however is that loop is going to run much longer than you probably think...Vieze Oude ManComment
-
Originally posted by bogeyman<Fr Dougal>
And why would they do that then Ted?
Is that like when you're standing at a bus stop, or washing your Porche, or something?
Or do they do it to see what a big feckin' eejot you are?
</Fr Dougal>Insanity: repeating the same actions, but expecting different results.
threadeds website, and here's my blog.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment