Hi group,
A question to the group, would it not be for a lot of the users better when
there was beside "Option strict on" an "Option logical Strict on".
I was automaticaly writting Textbox1.text = 0.tostring. I know what it has
to be, but I did this automaticly.
I find this crazy, it cannot be something else than a string, so the
compiler must have to find this very easy, but for the puritains, than that
option, than they can set it off.
I think that for a lot of VB users this kind of things is more important
than operator overloading or other more C behaviour (I understand a lot of
sophisticated users want it, so I would not say, don't let them make it, but
I think that this "Option logical strict on" would get 90% of the users
while operator overloading maybe 10%).
Just a thougth?
Cor
Nov 20 '05
23 1612
Herfried, Ah... you only want an "improvemen t" of the IDE?
First not but thinking about it, it would give the same result and what you
think about that?
Cor
AH is a Dutch grocer
* "Cor" <no*@non.com> scripsit: Ah... you only want an "improvemen t" of the IDE? First not but thinking about it, it would give the same result and what you think about that?
You are talking about the IDE converting the 0 to "0"? Maybe that
would be a nice _option_.
AH is a Dutch grocer
;-)
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Hi Fergus, to clarify what I thought Cor was saying
Option logical Strict on
Dim S as String
S = 3 'produces compiler error
but
S=3.toString() 'Valid, compiles okay.
Ie. The numeric literal '3' is an object/has methods etc but importantly as
discussed in this thread, an implicit "what else could it be" .toString()
method.
===
The crux of my previous post is what <other> implicit methods would exist to
be covered by the new compiler directive "Option logical Strict on" ? And if
there are others, then the other methods available would depend on the
(object)type for '3' (whether it was an Integer, Decimal, Long etc), which
would be unknown.
For example
Dim S as String
S=3.toString() 'valid, would compile okay.
S=3.minusOne.to String() 'valid for 3=type Decimal but not 3=type Integer
But looking at the other posts in this thread, all the talk is about
..toString() so I've probably got the wrong end of the stick here.
Cheers
Hexathioorthoox alate
"Fergus Cooney" <fi****@post.co m> wrote in message
news:Oc******** ******@TK2MSFTN GP09.phx.gbl... Hiya Hex,
I'm not sure what you're saying, but I think what Cor is saying is
that Option Strict On Dim S as String S = 3 'Compiler error
is Option Strict going a bit too far and that S = 3 should do an implicit conversion (not late-bound) because "what else <could> it be?".
Is that what you understood and were agreeing with? I couldn't really
tell, I'm afraid.
Regards, Fergus
-- (Please ignore this - there's a feud going on) =============== =============== =============== ===== Quote of the day Herfried: I don't need/want human interaction. =============== =============== =============== =====
* "hexathioorthoo xalate" <ru***@REMOVESP AM.clara.co.uk> scripsit: S=3.minusOne.to String() 'valid for 3=type Decimal but not 3=type Integer
'MinusOne' is a _shared_ property. 'ToString' is an instance member.
But you can write '... = 3D.MinusOne.ToS tring()' instead.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Okay, fair cop on this one :) I should have chosen a different example but
I hope the crux of the point still came over.
Hexathioorthoox alate.
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:ef******** ******@TK2MSFTN GP12.phx.gbl... * "hexathioorthoo xalate" <ru***@REMOVESP AM.clara.co.uk> scripsit: S=3.minusOne.to String() 'valid for 3=type Decimal but not 3=type Integer
'MinusOne' is a _shared_ property. 'ToString' is an instance member. But you can write '... = 3D.MinusOne.ToS tring()' instead.
-- Herfried K. Wagner MVP · VB Classic, VB.NET <http://www.mvps.org/dotnet>
* "hexathioorthoo xalate" <ru***@REMOVESP AM.clara.co.uk> scripsit: Okay, fair cop on this one :) I should have chosen a different example but I hope the crux of the point still came over.
It came over.
:-)
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Hiya Hex,
|| The crux of my previous post is what <other> implicit methods would exist
I agree. I've held back on my own comments because I wanted to ponder that very point
(but there's not really enough brain awake so far).
I think the point we differ on is that you're thinking of the type of the 3, while
it's the receiving type which would determine which conversion is required. I can see that
there could be clashes, not with S and 3, perhaps, but in other combinations there would
be the question 'which one?' - which is what you were getting at I believe.
That aside, this is an excellent opportunity to ask about 'Hexathioorthoo xalate'.
Hexa is the six, of course, as in benzene, thio is sulphur, oxalate is oxalic acid and
ortho is the paired carbon substitution. (All courtesy of Webster's 1913 Dictionary - http://www.hyperdictionary.com) But I've found no web reference to the combination, nor of
course, as to why you and it are one!
Regards,
Fergus
--
(Please ignore this - there's a feud going on)
=============== =============== =============== =====
Quote of the day
Herfried:
I don't need/want human interaction.
=============== =============== =============== =====
Just a sufficiently obscure nomme de plume for posting with origins lying in
a type of compound I used to make daily for about two years in the lab. The
generic structure looking something like this (the R's could be the same, or
different):
RS SR
\ /
RS-C-C-SR
/ \
RS SR
And under acid conditions, things sometimes get very smelly (Webster's 1913
sounds very good so will no doubt have a suitable description for "thiol"
too) - Hexathioorthoox alate is better than the obvious unflattering
'odiferous' alternatives.
Cheers
"Fergus Cooney" <fi****@post.co m> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Hiya Hex,
|| The crux of my previous post is what <other> implicit methods would
exist I agree. I've held back on my own comments because I wanted to ponder
that very point (but there's not really enough brain awake so far).
I think the point we differ on is that you're thinking of the type of
the 3, while it's the receiving type which would determine which conversion is
required. I can see that there could be clashes, not with S and 3, perhaps, but in other
combinations there would be the question 'which one?' - which is what you were getting at I
believe. That aside, this is an excellent opportunity to ask about
'Hexathioorthoo xalate'. Hexa is the six, of course, as in benzene, thio is sulphur, oxalate is
oxalic acid and ortho is the paired carbon substitution. (All courtesy of Webster's 1913
Dictionary - http://www.hyperdictionary.com) But I've found no web reference to the
combination, nor of course, as to why you and it are one!
Regards, Fergus
-- (Please ignore this - there's a feud going on) =============== =============== =============== ===== Quote of the day Herfried: I don't need/want human interaction. =============== =============== =============== =====
Hi Hex (or shall I call you Thio?)
No benzene but plenty sulphur. - garlic with mercaptan, apparently,
but I bet that was one of the least smelly!.
Cheers,
Fergus
> You are talking about the IDE converting the 0 to "0"? Maybe that would be a nice _option_.
Too many options these days ;-)
IMPO, We should leave it be, because where's the sense of being 'Strict' if
the IDE will butter your bread? (Where on *earth* did that cliché come from) AH is a Dutch grocer
I like the Dutch.
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
" System.Reflecti on Master "
==== Converting to 2002 ====
Remove inline declarations
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:#J******** ******@TK2MSFTN GP10.phx.gbl... * "Cor" <no*@non.com> scripsit: Ah... you only want an "improvemen t" of the IDE?
First not but thinking about it, it would give the same result and what
you think about that?
You are talking about the IDE converting the 0 to "0"? Maybe that would be a nice _option_.
AH is a Dutch grocer
;-)
-- Herfried K. Wagner MVP · VB Classic, VB.NET <http://www.mvps.org/dotnet> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hari Om |
last post by:
Here are the details of my error log files:
I execute the command and get following message at console:
----------------------------------------------------------------------
../sqlldr scott/tiger@common control=/full_path/test.ctl
log=/full_path/adhoc/test.log
SQL*Loader: Release 9.2.0.1.0 - Production on Tue Sep 2 10:49:27 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
|
by: Charles Crume |
last post by:
Hello all;
I have used dBASE, and other computer languages/databases, for years. They
all have a logical field type. However, the version of MySQL used by the ISP
hosting my site does not support a "logical" field type.
It does support ENUM and I have set some up in a couple of tables that
accept the values 'T' and 'F'. Sometimes they work like a logical field:
if ($myrow) echo 'New';
|
by: Christopher Benson-Manica |
last post by:
Of course one can get the effect with appropriate use of existing
operators, but a ^^ operator would make for nice symmetry (as well as
useful to me in something I'm working on). Am I the only one who
would find it useful?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
|
by: serge |
last post by:
How do I determine which method I should use if
I want to optimize the performance of a database.
I took Northwind's database to run my example.
My query is I want to retrieve the Employees' First
and Last Names that sold between $100,000 and
$200,000.
First let me create a function that takes the EmployeeID
|
by: serge |
last post by:
I am running a query in SQL 2000 SP4, Windows 2000 Server
that is not being shared with any other users or any sql
connections users. The db involves a lot of tables,
JOINs, LEFT JOINs, UNIONS etc... Ok it's not a pretty
code and my job is to make it better.
But for now one thing I would like to understand with your
help is why the same SP on the same server and everything
the same without me changing anything at all in terms of
SQL...
| |
by: blueboy |
last post by:
Hi,
I am planning to automate a nighty restore of a DB on another server
can someone point me in the right direction with the SQL script to
modify the logical file names to the correct path and not the ones
carried over with the DB??
i.e the database is to be renamed on the new server
any help much appreciated
|
by: dbtwo |
last post by:
Until today I always thought as long as you see a lot of logical reads
as compared to physical reads, then you're good. But it looks like it
isn't so. But doesn't logical read mean it's being read from memory
and no I/O involved? So why is Logical Reads = CPU Consumption ?
I ran into an exact scenario last week when our applciation were
running something, and each time an application started, the CPU would
go from 99% idle to 48% idle. I...
|
by: ags5406 |
last post by:
Hi --
I posted this in a Fortran group but thought I'd post here as well.
Any help is appreciated.
I have a IVF10 DLL that is the calculation engine for a frontend
application written in VB.NET 2005.
I've noticed that when I pass a Boolean/Logical from VB.NET to IVF10
as part of an argument list, when I try to evaluate it it only
|
by: Dominic Vella |
last post by:
I am using MS-Access2000. I can't seem to set the default values for Logical
type fields. I start with
Dim dbsTmp As Object ' I think it's DAO.Database
Set dbsTmp = DBEngine.OpenDatabase(CurrentProject.path & "\data_be.mdb")
and then use the following to run my SQL ststement
dbsTmp.Execute
-----------------------------------------------------
Something like this SQL statement works:
"ALTER TABLE tblStudent ADD COLUMN student_number...
|
by: raylopez99 |
last post by:
I have a logical drawing space much bigger than the viewport (the
screen) and I'd like to center the viewport (the screen) to be at the
center of the logical drawing space. After following the excellent
transforms specified on Bob Powell's site, I still wonder if there's
an easier way of centering it than the following procedure?
Here is what I do now (it's awkward but it works):
1) I follow the transforms specified on Bob Powell's...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |