|
-
Oct 30th, 2009, 08:28 AM
#81
Re: New SKUs and a Release Date for Visual Studio 2010
Yip, have to admit his blog is on my RSS feed 
Lot's of useful information on there.
-
Nov 2nd, 2009, 01:23 PM
#82
Re: New SKUs and a Release Date for Visual Studio 2010
Something only a programmer could find funny. The new dynamic type is a static type.
http://msdn.microsoft.com/en-us/libr...6(VS.100).aspx

-
Nov 2nd, 2009, 04:07 PM
#83
Re: New SKUs and a Release Date for Visual Studio 2010
They just created a type that is Late Bound that wont break Option Strict.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 2nd, 2009, 04:18 PM
#84
Re: New SKUs and a Release Date for Visual Studio 2010
Yeah thats what I was thinking lol I guess its better than turning Option Strict off altogether
-
Nov 2nd, 2009, 04:58 PM
#85
Re: New SKUs and a Release Date for Visual Studio 2010
Maybe it would have been better to have some sort of casting that would do the same thing.
Just seems to me that Dynamic is a repackaged Variant
Option Strict should never be an option to turn off. There is always a way to do something.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 3rd, 2009, 12:02 PM
#86
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by RobDog888
Just seems to me that Dynamic is a repackaged Variant
Not really. var infers a Strong Type. dynamic maintains itself as a dynamic type and is more useful for invoking functions from dynamic languages such as JavaScript or IronPython
-
Nov 3rd, 2009, 01:45 PM
#87
Re: New SKUs and a Release Date for Visual Studio 2010
You mean people actually use IronPython?
-
Nov 3rd, 2009, 02:16 PM
#88
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by chris128
You mean people actually use IronPython? 
Apparently.
-
Nov 3rd, 2009, 05:28 PM
#89
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by Cander
Not really. var infers a Strong Type. dynamic maintains itself as a dynamic type and is more useful for invoking functions from dynamic languages such as JavaScript or IronPython
Yes and no. Dynamic is more useful but its losely typed same as Variant. Its up to the programmer to make sure the object that will be casting will be of the expected type. Dynamic can bypass the Option Strict checking whereas Variant would require a casting to some defined type.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 3rd, 2009, 08:45 PM
#90
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by RobDog888
Yes and no. Dynamic is more useful but its losely typed same as Variant. Its up to the programmer to make sure the object that will be casting will be of the expected type. Dynamic can bypass the Option Strict checking whereas Variant would require a casting to some defined type.
Are we talking 2 different vars here? I am referring to var in C# where var is implicitly inferred to it's strong type. Whereas VB 6's var is what it sounds you are referring to.
-
Nov 3rd, 2009, 10:14 PM
#91
Re: New SKUs and a Release Date for Visual Studio 2010
repackaged Variant = VB6 Variant
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 4th, 2009, 02:36 AM
#92
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by Cander
Apparently. 
Off Topic:
Have you used it Cander? Any good? I have read about it, but never actually done anything with it?
Gary
-
Nov 4th, 2009, 08:39 AM
#93
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by RobDog888
repackaged Variant = VB6 Variant
Ok. Epic faceplam!
-
Nov 4th, 2009, 08:43 AM
#94
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by gep13
Off Topic:
Have you used it Cander? Any good? I have read about it, but never actually done anything with it?
Gary
Never had the call to try it. A friend of mine loves it, but he is one those dynamic language lovers who would sing it's praises no matter what. 
I do kinda like the python syntax though.
-
Nov 4th, 2009, 09:18 AM
#95
Re: New SKUs and a Release Date for Visual Studio 2010
Hmm... so the variant type is back, what a surprise. Wasn't Object supposed to be the type that handles what Variant did back in vb6 and older?
Why is .Net becoming so loosely typed anyways? I mean Linq, now Variant... this is becoming sad.
-
Nov 4th, 2009, 09:57 AM
#96
Re: New SKUs and a Release Date for Visual Studio 2010
 Originally Posted by JuggaloBrotha
Hmm... so the variant type is back, what a surprise. Wasn't Object supposed to be the type that handles what Variant did back in vb6 and older?
Why is .Net becoming so loosely typed anyways? I mean Linq, now Variant... this is becoming sad.
LINQ isn't loosely typed. And as I said above dynamic is useful for invoking of dynamic language methods. It will simplify Reflection for those languages and COM Interop. dynamic tells the compiler not to resolve the object until runtime. This allows you to use a dynamic variable in a stronly typed way like accessing fields and methods with dot notation without the compiler bombing out when you try to compile your code. So you could tie a dynamic variable to a dynamic object and call a method from it like
Code:
myDynamic.Method();
If myDynamic was declared as Object it would not compile.
-
Nov 13th, 2009, 02:55 PM
#97
Re: New SKUs and a Release Date for Visual Studio 2010
To get back on topic - I just received an email from MS suggesting that this fix might improve the startup speed of the WPF/Silverlight designer in VS 2010 BETA 2
http://blogs.msdn.com/ddperf/archive...10-beta-2.aspx
I havent had chance to test it yet as I rebuilt my PC with Windows 7 recently and havent reinstalled the BETA yet..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|