Omgili - forum search, search forums  
  

Discussions about passing some things

Displaying 1 - 10 out of 419,831 discussions.  
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Possible Duplicate: In PHP (>= 5.0), is passing by reference faster? I wonder if by declaring the parameter pass by reference, the PHP interpreter will be faster for not having to copy the string to the function's local scope? The script turns XML ...
Started by on , 5 posts by 5 people.  
Every time you do thing the unusual way you have to remember run into weird....
You may, which is not the way things normally work.
Passing things by reference can be especially misleading.
It will slow you down in long run.
Here is what I understand so far: PASS BY VALUE Passing by value means a copy of an argument is passed. Changes to that copy do not change the original. PASS BY REFERENCE Passing by reference means a reference to the original is passed. changes to the...
Started by on , 8 posts by 8 people.  
You can); // OK, foo assigned by SetOne AddTwo(ref....
They both mean 'pass by reference'.
Some parameter scenarios might be: ref int numYou would never combine ref and out on 1 parameter.
Understand the dynamics of passing either way.
Interesting there was never any talk of Congress' dismal approval rating when it was actually worse than it is today, and the Democrats had total control of it. We never heard a peep about it until the Dems lost the House, but now it's almost a daily ...
Started by on , 1 posts by 1 people.  
Ask your Facebook Friends
Here's what I want to do: Given a table PeopleOutfit (id int primary key, boots int, hat int) And a stored procedure UpdateOutfit @id int, @newBoots int = null, @newHat = null Is there a way to tell whether I called this procedure as exec UpdateOutfit...
Started by on , 6 posts by 6 people.  
If the default is null , then maybe you could pass....
My suggestion is to use a default value that you would never pass in as an argument.
My guess is no, you can't tell those two things apart.
Logic to do something different.
Perl is really good for writing the kind of string/file parsing programs that I usually need to do. What I really love is the insignificant amount of time it takes me to write quick scripts and throwaway code, compared to C/C++/JAVA. However, I want to...
Started by on , 5 posts by 5 people.  
Gt; ", $subs{$sub}(), "\n"; } Benchmark::cmpthese -1, \%subs; I remember reading in some article (please comment if you can place it) that you can hint perl that you will not modify some variable and optimize and improve the algorithm....
I've got a project (about 80K LOC) that I'm working on, and I've got nearly a full month of luxury refactoring and feature adding time prior to release so long as I'm careful not to break anything. With that being said, what can I do to improve maintainability...
Started by on , 7 posts by 7 people.  
Given that as a goal, here are some things that I would specifically target: 1) Remove duplicate code at the wiki article on Code Smells on this site, its a great place to start! The key thing to consider of things (or have....
Hi there. I was wondering if there was any way to pass parameters dynamically to variadic functions. i.e. If I have a function int some_function (int a, int b, ...){/*blah*/} and I am accepting a bunch of values from the user, I want some way of passing...
Started by on , 5 posts by 5 people.  
}; } void some_function(size_t n_things, struct thing *things, DOUBLE, LONG }; struct thing { enum thing_code code; union { int a; double b; long c; }; }; void....
Void (*print)(struct thing*); union { ...
Well, the title says it all. When passing a file name to a method, should I use a FileInfo object or a plain file name (string)? Why would I prefer one to the other? Some of my colleagues like to write method like this: void Export(FileInfo fileInfo) ...
Started by on , 11 posts by 11 people.  
I think file name....
The abstraction of a File in the argument name what it is .
I think on the class File allow a number of things with the filename.
Point of view - in some ways a FileInfo is a "cleaner" way of expressing the parameter.
Should there be any problem passing this kind of a collection in WCF ? class Parent { [DataMember] some data members [DataMember] Child myChild; } class Child : Parent { [DataMember] some more data members [DataMember] Parent myParent; } Should there ...
Started by on , 3 posts by 3 people.  
{ } [DataContract] class Child : Parent { } If you're dealing with collections of things, then you might need = true)] [KnownType(typeof(Child))] class Parent { [DataMember] some data members [DataMember] Child myChild; } [DataContract(....
I have some Java code similar to: public class Thing { private IPolicy policy; public Thing(IPolicy policy) { this.policy = policy; } public void doSomething() { this.policy.execute(); } } My question is: is it possible to do this with generics rather...
Started by on , 4 posts by 4 people.  
This requires only constructor mechanism or abstraction....
A Thing cannot exist with a policy.
The collections API is probably the canonical example that a Thing always has a policy ie.
The type is (potentially with some constraints).
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • Lifestyles and Living - US Messageboards - Where the Cool Kids play!
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost