5 thoughts on “How our background compiler works…

  1. Kellen

    Is there a way to define configuration properties (compilation constants) for the background compiler that are different that the active configuration? I am looking for a way for intellisense to see a property as an enum, and then when it’s compiled it is an integer. I know enums are essentially integers, but there is no way to set an enum property to an integer value using reflection that I have found. (I’ve tried switching configurations between coding and building but thats getting a bit tedious)

    Thanks in advance, the article was very informative… even if I didn’t get what I was looking for.

    Reply
    1. paulvick

      Kellen, there isn’t any way to switch things like this at the moment – since Intellisense works off the active compiler, what you see is what we’re compiling….

      Reply
  2. Branco Medeiros

    Maybe I’m mistaken, but it seems VB Classic has a different model of backgorund compilation… First of, there’s the tokenization proccess and a one-line-at-a-time compilation. VB seemed not to bother much with the surrounding context, and it always seemed ok to me, since probably the user would be changing the context a lot.

    The resulting intellisense seems to come from very specific parts of the text (type definition, constvariable declaration, method signature). In other words, VB Classic would not try to recompile the wolrd only to give me a precise list of, say, methods specific to the type being assigned (Delphi does this kind of selection, and I think it’s annoying, but then, maybe it’s just me).

    I’m waiting for my DSL connection to arrive, so I can download the Beta 2 and try it. I’m still not sure if I really want to make the move from Classic to .Net (as much as departting to C# looks almost like changing sides with the enemy, to me… :-))

    Reply
    1. paulvick

      Branco, yes, VB6 had a very different compilation methodology – the VB .NET compiler was pretty much a rewrite from the ground up! Hope you enjoy Beta2 and let us know how it goes!

      Reply
  3. Pingback: Daniel Moth

Leave a Reply

Your email address will not be published. Required fields are marked *