Total Format - Total Entertainment
 
 

Go Back   Total Format Forum > Computing Forums > Coding, Design & Graphics

Coding, Design & Graphics If you are programming a script, designing a web page, building your own graphics or anything related and need to discuss it, get help and tips or general advice, then you should post your thoughts to this section.

Reply
 
LinkBack Thread Tools Display Modes
Old 15-05-2009, 20:00   #1 (permalink)
Name, Title, Location meow
Kissed all the girls

The twighlight zone
Maldives
Avatarmeow's Avatar
Mood
Posts3,206
Karma meow is amazing.
meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.
Pu6,780.96
Awards
TF Top Poster Bronze 
Total Awards: 1
Cat 3 Gift Box Medal Single Red Rose Flowers Cake French Fries litebeer Subway Apple Heart Love Hearts Cash Love Hearts Tissues

Default Operator Overloading with C# Extension Methods

unfortunatly ive just discovered this isnt possible after changing my code to use them :s

how anoying ! what does anyone else think ?
meow's Sig:"Some people see things as they are and ask `Why?'. I dream of things that never were and ask `Why not?'. "
"science without religion is lame, religion without science is blind"
Toolsmeow is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15-05-2009, 20:05   #2 (permalink)
Name, Title, Location Mars
Freak 100%

Lancashire
United Kingdom
AvatarMars's Avatar
Mood
Posts1,947
Karma Mars is advanced.Mars is advanced.Mars is advanced.
Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.Mars is advanced.
Pu23,049.14
Beer Big Beer Glass of Wine litebeer Champagne Birthday Cake
Default

*scratches head*
ToolsMars is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15-05-2009, 20:31   #3 (permalink)
Name, Title, Location Detomah
Owner&Designer

Total Format HQ
United Kingdom
AvatarDetomah's Avatar
Mood
Posts22,900
Karma Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.
Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.Detomah is a superior being.
Pu129,857.15
Critters
Blog
Blog Entries: 2
Awards
TF Activity Award - Silver TF Activity Award - Bronze TF Gaming Award - Silver TF Top Poster Bronze TF Top Poster - Silver TF Top Poster - Gold 
Total Awards: 6
Sunderland AFC Dog 2 Pie Treasure Single Red Rose England
Default

You have me at a complete loss... I've not even dabbled in the most basic of masics with the C# languages. Is it generally easy to get to grips with the basics of, if you have some coding ability?
Detomah's Sig:
Donations - Help Total Format, by kindly donating your spare cash.
Site Map - See exactly what Total format has to offer during your stay.
TV Guide - check out what is on TV right here at Total Format.
Cartoons - Read the latest comics that Total Format has to offer.
Search | BBCodes | Smilies | FAQs | Forum Rules | Contact TF | Link To TF | Privacy Policy
Follow Total Format on Twitter HERE
ToolsDetomah is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15-05-2009, 21:39   #4 (permalink)
Name, Title, Location meow
Kissed all the girls

The twighlight zone
Maldives
Avatarmeow's Avatar
Mood
Posts3,206
Karma meow is amazing.
meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.
Pu6,780.96
Awards
TF Top Poster Bronze 
Total Awards: 1
Cat 3 Gift Box Medal Single Red Rose Flowers Cake French Fries litebeer Subway Apple Heart Love Hearts Cash Love Hearts Tissues

Default

in a way its quite easy, if your completly fluent in c that is, and also know an object orientated language like c++ or one of the other ones,,, such as java j++ etc.

its all object orientated, ie you cant even write a single function or a single variable at all whatsoever if it isnt part of an object.

wel the pros are :-

1) memory managed = no memory leaks, no bogus pointers which make you head explode after weeks of debuging
2) no header files used or needed
3) extremly platform friendly, .net is standard on winxp.
unix also has .mono (which is suposed to be the same but ive heard some people whinge about it.)
3a)extensive librarys can be shared easily and multiple versions are handled so out of date dll or "DLLHELL" is no longer an issue.
4) JIT compiled which means best of both worlds ie compiled into an intermediate language like most interpreted languages so its very fast to compile, and very small, but only when its actually needed is it compiled into actual machine code. it will compile into the language native to the machine its run on.
5) no messy macros to get you into trouble.
6) very tight type usage.
(ie you cant use an interger as a conditional)
7) generics which are like templates, and enforce very tight control.
8) .net libray which is huge,
9) lots of goodies like quick list iteration loops using something like foreach(cat in litter) ...
10) properties can mimic variable fields in structs/clases
11) you can also use unsafe code which is dangerous like c but can be usefull
12) REFLECTION it is the most powerfull access to the meta data, this is basically the information of the program that can be examined at runtime. you can examine any object unknown at compile time and set any variable cal any function of it.
13) runtime compilation ! - you can generate code at runtime and incorporate it. !!!
14) ITS GOT A FREE IDE !
15) LINQ i have no clue what this is but MS think its the best thing since marmite so its probably crap.
16) its got extension methods, which allow you to add things to clases as if they were actualy writen in the class.
17) its got partial classes which alow you to spread a cless definition accross multiple files, this may not seem a big deal but it is actually for things like code generators.
18) so far ive only encountered 1 bug, which only shows up in release mode and is easily avoided.

cons :-
1) generics are limited when it comes to some things.
2) no macros which means you have to use generics but these dont get optimised so well.
and generics dont entirly replace macros so theres more cut and paste than id like.
3) structs cant inherit base structs, this has enourmous implications
4) properties dont fully look like field variables, ie you cant use them where you have a reference to a field variable, you cant modify the value of a property.
5) reflection :- its a bloody nightmare !
6) memory management, hmm, can hit performance but although you can avoid this and still write realy fast code using it you have to realyunderstand whats going on to avoid this which is damned complicated.
7) structs and classes are differenmt in ways which are so dificult to understand it seems they will probaly go on for decades
8) cryptic error messages if you try run it without .net installed
9) you cant use operators in generics, or it seems as ive just found out use operators in extension methods.

theres probably more but al i can think of of the top of my head.

ps you can have fixed arrays of value types in structs, however you cant have fixed arrays of structs which is a downer. (structs are actually value types)

pps
oh you cant have overloadable operators either which is kinda sucky, although some claim this is a good thing but i think those people are stupid.

Last edited by meow; 15-05-2009 at 22:53.. Reason: had to change it, again
meow's Sig:"Some people see things as they are and ask `Why?'. I dream of things that never were and ask `Why not?'. "
"science without religion is lame, religion without science is blind"
Toolsmeow is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links

Reply

Tags
extension, methods, operator, overloading

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Experts back flu jabs extension Bandit UK & World News 0 16-04-2009 09:50
Drogba criticises Scolari methods Bandit UK & World News 0 20-02-2009 11:50
Big Red 10% Discount EXTENSION to end of Dec Detomah Shopping Offers 2 02-12-2008 20:19
Take-Two unimpressed by extension of EA's offer Detomah Gaming & Console News 0 20-05-2008 15:32
The upcoming Rappelz extension unveils its two new Unique Creatures Detomah Rappelz 0 14-05-2008 17:21

 
 
Archive - RSS Feeds - About Us - Privacy - Terms of Use - Site Map - Advertising - Link To TF - Contact Us - Top
Content Relevant URLs by vBSEO 3.2.0 RC5 Copyright ©2003 - 2000, Total Format. Forums powered by vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Limited.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385