The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Browse by Tags

All Tags » VB (RSS)
  • Re: My first run-in with C#

    [quote user="CDarklock"]Not entirely true - they can only be value types because of that. [/quote] Still not entirely true: System.String is a reference type, but you can declare a constant of it. System.TimeSpan is a value type, but you can't declare a constant of it. I don't have...
    Posted to Forum by Spectre on 11-05-2008
  • Re: Rather cold in here...

    [quote user="dtech"] Java does it too, unlike morbius said. Does anyone know mainstream stong-typed languages that don't allow it? (genuine question) [/quote] VB has checking on by default. (genuine answer) Public Module Test Sub Main() Dim i as Integer = 1 Do i *= 10000 Loop End Sub End...
    Posted to Forum by Spectre on 10-30-2008
  • Re: Fun with collections

    [quote user="coentje"]and the forum software[/quote] Hey — at least your post has linebreaks and monospaced code.
    Posted to Forum by Spectre on 09-14-2008
  • Re: Zero based indexing gone too far

    I meant to post this yesterday, but forgot. 8=[ [quote user="bstorer"][quote user="NorseLaQuet"]Most languages (except VB and a few other POS languages) use 0 indexing.[/quote]Cute piece of trolling here. Also, VB lets you pick between 1 or 0.[/quote] Since version 7 (.NET), it doesn't...
    Posted to Forum by Spectre on 06-27-2008
  • Re: In VB, you can't make a 3D game...

    Interestingly enough, UnrealEd 1 (at least the one for Deus Ex) was written in VB. That doesn't make a particularly good example, though, since it's buggy as hell.
    Posted to Forum by Spectre on 05-20-2008
  • Re: Death of Spaghetti code

    [quote user="spenk"][quote user="SpectateSwamp"]long live VB5.0 [/quote]VB5 is dead, it isn't even supported any more. VB6 surpased it and that is about to enter extended support due to it's age.[/quote] Actually, VB 6 is out even of extended support, as of now: http://support...
    Posted to Forum by Spectre on 04-27-2008
  • Re: Yet more VBScript Fun: Subroutines and By Reference

    [quote user="Salami"] In VB you pass variables wither ByRef or ByVal. You can explicitly state it (ByVal SomeVar as Integer) if you want. The default is ByRef, which means if the variable is changed in the subroutine it also changed in the calling subroutine. [/quote] Correction: this was the...
    Posted to Forum by Spectre on 04-18-2008
  • Re: Override it all

    [quote user="ekolis"] Yeah, I saw it that way too - but don't you have to explicitly declare things as "virtual" to allow them to be overridden in VB and C# (unlike in Java, where you have to make them "final" to prevent them from be overridden)? I'm not sure whether...
    Posted to Forum by Spectre on 03-19-2008
  • Re: Override it all

    I admit I missed the WTF the first time, but now I see it. This property overrides the one in the base class, yet does nothing new. It's a mildly amusing equivalent of: struct A { virtual void M() { /* Do stuff */ }}; struct B : A { void M() { A::M() }}; Okay, guess it's not funny after I explained...
    Posted to Forum by Spectre on 03-19-2008
  • Re: How to parse integers in jscript

    VBScript has classes, actually. But I was surprised to learn that it has no " On Error GoTo somewhere" functionality. What's the purpose of the Err object, then?
    Posted to Forum by Spectre on 03-17-2008
Page 1 of 3 (23 items) 1 2 3 Next >
Powered by Community Server (Non-Commercial Edition), by Telligent Systems