Re: JNI Newbie - Modifying parameters in native method



Nomak <none@xxxxxxxxxxxxxxxxx> writes:

> this system is called "passed by reference".

No, passing something by reference usually means you can alter a
variable in the caller. Think of the old swap(a,b) example from C
which you cannot do in Java because everything is passed by value.
.



Relevant Pages

  • Re: using Getopt with subroutines
    ... > hate to alter @ARGV without knowing what might still be there. ... Have you thought about merely passing a reference to a Hash???? ... you might want to use caller - cf perldoc caller - to be ...
    (perl.beginners)
  • verifier - caller complete power irp without passing down
    ... miniport (so both my miniport and the scsiport are being "verified".) ... "Caller has completed successful IRP_MJ_POWER instead of passing it ...
    (microsoft.public.development.device.drivers)
  • Constant parameters
    ... But I don't want to alter the object for the caller. ... public IResult DoSomeStuff(IArg anArgument) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Help with program crashing...
    ... santosh said: ... originally I planned on passing the structure by value with the ... > above pointers pointing to the appropriate variables in the caller, ...
    (comp.lang.c)
  • Re: passing a unions field to a function
    ... What about the caller having to know all about the union's internals? ... No worse than having ton know about the type being passed. ... When all I'm passing is one of the fields, I don't need to know about others ...
    (comp.lang.c)