Re: Delphi Dot Net, Better than Win32, or just Hype?



Jeroen Vandezande wrote:
Is there a rule I can follow here?

I use a naming convention to make this easier to work with. I name properties and variables so that it is obvious what is being passed back to the caller etc. I use the "Ref" suffix for anything that passes a reference to an object that shouldn't be freed. That doesn't always work but it often does. I find that I normally work with one primary structure that contains all the objects and then I have other objects that simply reference the contained objects.


HTH

Cheers,
Kevin.
.



Relevant Pages

  • Re: Passing arguements by reference
    ... but doSomething doesnt change p unless i use "ref"? ... reference, hence both p and q pointing to the same object, not to different ... don't use the ref keyword. ... void Execute() ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Documentation suggestions
    ... > Ian> I think it would be very useful if there was reference (not just ... Lang ref as only for "language lawyers". ...
    (comp.lang.python)
  • Re: pass by reference
    ... focus has moved from insisting to use "by ref" in java-context ... independent of any other use of the word "reference" in a language. ... Just because Java-refs can be re-targetted by assignment? ... If Java had an operator to tell an Object ...
    (comp.lang.java.programmer)
  • Re: Texas TMS1232 Delta Sigma converters
    ... John Larkin writes: ... >>picked up between the transducer and the ADC I'm trying to eliminate. ... the reference problem is serious. ... We're using an Analog Devices Xfet ref, ADR421, ...
    (sci.electronics.design)
  • Re: different forms
    ... You can declare a static variable of the main form's type at the main ... You can pass a reference of the form that opens the second/third/etc form ... they are being copied always, exept when you pass them by ref), you don't ... If you want to pass vars that are not of a ref type, ...
    (microsoft.public.dotnet.languages.csharp)