| Off Topic > Off Topic |
| Programming Megathread |
| << < (185/241) > >> |
| Headcrab Zombie:
--- Quote from: Foxscotch on September 16, 2016, 11:19:05 PM ---apparently System.Linq extends the Array class somehow or something --- End quote --- .NET has what's called extension methods There's multiple other examples --- Quote from: Foxscotch on September 16, 2016, 11:19:05 PM ---but what if I don't wanna have a using directive? then wtf do I do to get the same functionality why....... --- End quote --- Well if you really wanted to you could rewrite the extension method from within your own code But I really don't see why it's an issue. It's just a single line that you're not really going to pay much attention too --- Quote from: Timestamp on September 16, 2016, 09:12:07 PM ---also i don't think not responding at all implies any sort of answer, even a "no" --- End quote --- If you ask a single person a question in a one-on-one conversation, and they don't answer, then you can conclude they didn't hear you or are are ignoring you. But that doesn't work in an online forum with potentially hundreds of participants. |
| Glass Joe:
Created handy structs to define parameterized (template) points and lines in C++. Points have an x and a y, and the overloaded operators simply add/subtract/multiply/divide two point operators together. Lines have two points like you'd expect, but their overloaded operators are slightly more involved. Adding and subtracting is a translation that uses the source line's displacement as a point, and multiplying and dividing is a dilation using the source line's length. Bigass pastebin |
| Metario:
okay wtf I just got 20 keybase invites hmu if you want one |
| Pecon:
--- Quote from: Metario on September 18, 2016, 03:06:03 AM ---okay wtf I just got 20 keybase invites hmu if you want one --- End quote --- And I still have 15 of them... |
| Steve5451²:
Spent five hours coding something and lost it all through system recovery. :D Best part is that it's already been overwritten by the data recovery software I downloaded!! |
| Navigation |
| Message Index |
| Next page |
| Previous page |