|
by: Raymond Hettinger |
last post by:
Here is a discussion draft of a potential PEP.
The ideas grew out of the discussion on pep-284.
Comments are invited. Dart throwing is optional.
Raymond Hettinger
-------------------------------------------------------------
PEP: 323
|
by: Jason Shohet |
last post by:
I have a class with protected variables and some accessor methods, , get,
set ...
Maybe I have a brain blockage today but I'm thinking, why not just make
those variables public.
After all, someone can do just as great harm by misusing a set { }
accessor method as just doing myObj.lastname = "Big Bird"; which he
could do in a second class, if the variable is public on the first class.
IOTW, what does keeping with the protected /...
|
by: Burkhard Perkens-Golomb |
last post by:
Hi,
I've a question about XML documentation of overridding methods and
methods implementing an interface declaration: These methods are
normally documented in the base class or interface. So I don't want to
write new documentation when overriding or implementing.
But if I leave out documentation and compile my assembly with
"/doc" the compiler warns me about missing documentation. How can I
tell the compiler that these methods don't...
|
by: John C |
last post by:
I'm new to C#, so just point me at the correct reference material if this
question has been answered before.
When creating a new class which implements the IDictionary interface, two
versions of the GetEnumerator method must be defined (one from the
IDictionary interface, one from the IEnumerable interface).
The first is defined as:
public IDictionaryEnumerator GetEnumerator()
|
by: Shawn |
last post by:
As if it won't be clear enough from my code, I'm pretty new to C
programming. This code is being compiled with an ANSI-C compatible
compiler for a microcontroller. That part, I believe, will be
irrelavent. My syntax is surely where I am going wrong.
I'd like to be able to call this routine to read different values from
another device. This routine would be called quite simply as follows:
void main()
{
|
|
by: Smokey Grindle |
last post by:
i want to inherit the list view class, but in the inherited class, hide the
Header style property and the view property (basically its a detailed list
with always clickable headers) how do I keep the base class properties from
showing up in the inherited class when people change its properties in the
IDE? thanks!
|
by: David |
last post by:
I am trying to get this straight in my head so I can implement.
I wrote a small utility some time ago in c# that utilized a handful of
threads. That scenario was one main thread manually spawning a handfull of
worker threads, then waiting for all of them to complete before moving on. I
believe I used array of ManualResetEvents and the WaitAll() method to do
this. All the worker threads used a shared object (a common place to
collect...
|
by: Frankie |
last post by:
I have just gotten up to speed on what anonymous methods are (syntax,
capabilities, etc), and how they can be used with /called via delegates.
What I am wondering is...
1. Are they only/mostly syntactic sugar (important as that can be)?
2. Are anonymous methods *required* anywhere? That is, are anonymous methods
the only way to accomplish certain tasks in
..NET programming?
|
by: RobertEstelle |
last post by:
Hello,
I've been banging my head against this problem for a couple hours now
to no avail.
I'm trying to make a descendant of a class that has overloaded methods
with variable argument lists. The problem is, when my descendant class
does the same, function resolution seems to stop there without looking
at the base class.
This happens both with g++ and VS2005, so I don't suspect it's a
|
by: =?Utf-8?B?UGF1bA==?= |
last post by:
Hi I have a c# windows application vs2005 with a main section and two public
static methods.
Anyhow I am using the same variable in the main section as well as the
methods but in each case I had to create a new variable. Is there a way to
have the variable declared and set in Main and usable in the methods without
passing them into the methods? The methods would only need to read the
variable.
Thanks.
--
Paul G
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|