Top "Return-value" questions

Return value is the result of evaluation of a return statement.

Should I return std::strings?

I'm trying to use std::string instead of char* whenever possible, but I worry I may be degrading performance too …

c++ string return-value
Is it ok to skip "return None"?

I wonder if it is bad manner to skip return None, when it is not needed. Example: def foo1(x): …

python function return-value
javascript - showModalDialog not returning value in Chrome

I made a small calendar popup in Javascript. Very simple, using the Calendar control from ASP.NET. I call the …

javascript return-value showmodaldialog
Is it Possible to Return a Reference to a Variable in C#?

Can I return a reference to a double value for example? This is what I want to do: ref double …

c# reference return-value
Differences between System.out.println() and return in Java

I'm trying to understand the difference, and benefits of using System.out.println() vs. return blah in a method. It …

java return return-value system.out
VBA - Returning array from Property Get

If arrays are returned by reference, why doesn't the following work: 'Class1 class module Private v() As Double Public Property …

arrays class vba return-value byref
How to check return value from the shell directive

In my Makefile, I need to test if the current directory is an SVN repo or not and if it …

shell makefile return-value gnu-make
Java: Return class (Not an instance)

Is it possible to return in a static method a class? I will explain... I have: public class A { public …

java static class-design return-value
Best way to return status flag and message from a method in Java

I have a deceptively simple scenario, and I want a simple solution, but it's not obvious which is "most correct" …

java exception return-value
How catch return value in a Powershell script

I have a powershell script (.ps1) that execute other Powershell script that has a return value. I invoke to the …

powershell return-value invoke