« first day (1019 days earlier)      last day (2161 days later) » 
00:00 - 21:0021:00 - 00:00

9:00 PM
@IvenBach - You don't waste our time. OP on that question did, with about 7 people who where repeatedly asking what the question was until one of them guessed.
 
just rolled back a stupid "(SOLVED)" edit
 
I feel like it sometimes when @Comintern @Hosch250 and @Mat'sMug are all giving me good explanations but I still can't understand it.
 
@Mat'sMug See:
Here's something you techies out there didn't know: I run the Microsoft MVP program. You're not surprised, are you?
 
LOL
 
LOL
 
9:04 PM
oh geeze...
 
I figured that YowE3K edited the "(SOLVED)" there when he guessed WTH OP was trying to do.
 
@Comintern any thoughts on how to handle #2922?
 
I hadn't had a chance to look at it yet, but couldn't we just not extend the hidden members?
 
Or is knowing that a declaration has a type of DeclarationType.Control enough to know that that declaration also implements all of the members of Control/IControl, while other declarations only implement some?
@Comintern Extend the visible and hidden Icontrol members to DeclarationType.Control declarations, and only extend the visible IControl members to declarations having a Type that is an implementation of IControl?
 
9:21 PM
Yeah, that was my thought.
 
I just don't know how to extend members the other way (without doing code-path analysis). For example, a variable of type Control can invoke members of the underlying type:
  Dim ctl As Control
  Set ctl = Me.Controls("ListBox1")
  Debug.Print ctl.ListCount
 
Do they fail at compile time?
 
The extended members don't appear in Intellisense, but they do compile. When stepping the code, the Locals window shows the extended properties and their values.
 
So they fail at run-time? If that's the case, wouldn't they get flagged as using an extended interface?
If we left them off I mean.
 
@Comintern just noticing Charles William in this morning SO discussion is challenging the integrity of the Excel host, Would defusing the tone help?
 
9:39 PM
hmm - 4G delays - I may be confusing things for you....
A variable named `myListbox`of Type `ListBox1` that is set to `Me.Listbox1`, can have an invocation of hidden `Control` member `[_SetHeight]` and it will compile, but it won't run. It can have invocations of visible `Control` members such as `Height` which won't appear in Intellisense, but will compile and run.
But a variable named `myControl` of Type `Control` that is set to `Me.ListBox1`, can have invocations of both visible and hidden `Control` member such as `Height` and `[_SetHeight]` (that both *do* appear in Intellisense), **and
 
@PeterMTaylor Meh, I gave up on that a while ago. If there's an answer in what he wrote, maybe somebody else can figure it out. TBH, the question itself should have been closed about 9 hours ago for about 3 different reasons.
 
already has my VTC
I met Charles when he was in Melbourne last year. Told him about Rubberuck and has asked if it was written in C++ (with which he is most familiar). When the anwswer was no, he seemed disapproving.
What were we saying about MVPs?
 
Well, I woke up and took my test. Got just one wrong.
@ThunderFrame LOL.
Are you sure it wasn't disappointed?
I mean, I wasn't exactly asleep, I just woke up to test-taking-alertness.
 
@Hosch250 he's focused on Excel model/formula performance - either built-in formulas or XLL functions, not VBA
 
@Mat'sMug How far are you on refactoring the inspections? I'd kind of like to write a proof-of-concept for my idea.
 
9:52 PM
OK, I lied.
In .NET? A bunch of ways. Declare as object and reflect on the COM assemblies or use dynamics. Declare IUnknown and IDispatch and go old-school on it. Drop to unsafe mode and work with the vtables directly. Etc. Am I understanding correctly that by "cannot obfuscate object model calls" you mean that a .NET coder would have to actually type "Excel.Application.Calculate" into the code somewhere? — Comintern 17 secs ago
 
Although, I should probably get Remove/Reorder using the rewriter first.
 
10:10 PM
Thank you @Mat'sMug @Comintern @ThunderFrame, more and more of what interfaces are and how to use them is clicking. I was working on one today. Your earlier patient explanations helped me so much to grasp the concept and start work.
 
I am currently trying to fix the TypeBindingContext and I am a little bit astonished about a test I broke. Is it really legal to have Public WithEvents anything As BindingTarget where BindingTarget is a standard module?
 
10:27 PM
@M.Doerner nope
wait, can a std module have events???
 
I have no idea.
It never occurred to me to even think about having events on them.
That code is in the test to verify that we resolve to the module and not to the Enum, with the same name, it contains.
 
I'm 99.9999% sure events are only legal in class modules.. But VBA has this tendency to surprise me in many disappointing ways....
4
 
They're legal in document modules too.
 
Ok, the code used in the test is not legal VBA.
You cannot name an enum in a standard module the same as the standard module.
What type do we assign to document modules?
 
@Hosch250 I refactored my example you critiqued and should be ready for some more when I post again tonight.
 
10:42 PM
OK.
Is this a bad answer, or an overlooked answer? codereview.stackexchange.com/questions/157609/…
 
Overlooked.
 
OK, I feel better.
 
> sorry, I'm lost on the terminology there..

when I make a completely empty workbook, add a RD test module with early binding, the error occurs.
it's the same error given with real application.
at that time the only referenced libraries are whatever VBA adds automatically and RD

no COM or Excel add-ins other than RD are active.

https://www.dropbox.com/s/ci0cxhtwajprfbo/RubberDuck%20Parsing%20Error%20Workbook_Simple.xlsm?dl=0
> sorry, I'm lost on the terminology there..

when I make a completely empty workbook, add a RD test module with early binding, the error occurs.
it's the same error given with real application.
at that time the only referenced libraries are whatever VBA adds automatically and RD

no COM or Excel add-ins other than RD are active.

https://www.dropbox.com/s/ci0cxhtwajprfbo/RubberDuck%20Parsing%20Error%20Workbook_Simple.xlsm?dl=0
 
@Comintern document modules are class modules...
 
Yeah, I realized that was probably what you meant about 5 minutes later.
 
10:58 PM
@M.Doerner DeclarationType.Module IIRC
 
I also just looked it up: DeclarationType.Document
which has the DeclarationType.ClassModule flag.
 
Oh document modules lol sorry I thought you meant procedural modules
@M.Doerner aye, that makes it easy to look for modules that behave like classes
 
That would be DeclarationType.ProcedurealModule IIRC.
 
[rubberduck-vba/Rubberduck] build for commit 811df210 on unknown branch: AppVeyor build failed
BUILD FAILURE!
 
11:02 PM
Ah, yes
 
After finding this strange test, I just had another look at the EnclosingProjectComedBefore... tests that failed randomly. They all test how the resolver behaves in cases where the code does not compile.
 
Interesting
It shouldn't even matter...
DELETE ALL THE TESTS!
> Hi Dannae,

Seems there's an unfortunate confusion here. The Rubberduck project I maintain is a COM add-in for the Visual Basic Editor (VBE), the IDE people use to write VBA code... as you may have noticed on the website you got this email address from.



On Mar 21, 2017 16:40, "Dannae Gomez" <dannae.gomez@getapp.com> wrote:
Forgot to include the link to the article you were featured in! My apologies! https://www.getapp.com/blog/6-slack-apps-for-small-business/
Oops that was the draft reply.. there's more to it
But whatever.. That duck is nowhere in my google search results. Best of luck...
 
The thing is that in those tests some public member (standard module, enum, procedure) has the same name as the project.
 
Ah, makes sense - but it should be legal code still
 
11:07 PM
I just tried it in Excel; it does not compile.
 
[rubberduck-vba/Rubberduck] build for commit 315db7bb on unknown branch: AppVeyor build succeeded
 
OK, the procedure is actually ok.
Hm, Type is also ok, but not Enum.
 
@Mat'sMug Their duck looks at bit sketchy with those sunglasses.
 
LOL.
@Comintern Guard Duck!
 
"I found this related questions. Want a ride in my van?"
 
11:12 PM
Whatever.
That's the duck I like ^
 
Hm another test thinks that Public WithEvents anything As BindingTargetName should resolve to an Enum, which technically is correct, but leads to a compiler error.
 
Dim ok As Boolean - Hungarian much?
 
Debug.Print ok = vbCancel
 
RAHRRRRR!!!
 
yep....that's a tug boat.
 
On Encounter Visual Basic Continue
 
@Mat'sMug Don't stop, go.
Or, if you do stop, go to jail.
 
On VBA GoTo [rubberduckvba.com]
@BZngr and on the left, a destroyer?
 
11:43 PM
^
 
00:00 - 21:0021:00 - 00:00

« first day (1019 days earlier)      last day (2161 days later) »