Re: Declaration problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




David
Longs are the native size and therefore more effecient than ints on 32
bit machines. Well (slightly) faster anyway, memory is the same I
think.

You can keep it as an int if you do the 38000-8000 shuffle (which lets
vb know one of the args is a long). This therefore does not affect
your declaration of x.

You are right, it is odd, I'm sure I read about this a long time ago,
no idea where though. It looks like the issue is still there in .net
if thats any consolation.

cheers
Simon


--
Simon Murphy
------------------------------------------------------------------------
Simon Murphy's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=26538
View this thread: http://www.excelforum.com/showthread.php?threadid=398008

.



Relevant Pages

  • Re: Declaration problem
    ... As the formula is multiplying 2 ints VB assumes the result will be an ... Fixes include: ... Simon Murphy ...
    (microsoft.public.excel.programming)
  • Re: "Parallel.For GC problems" and a solution.
    ... I think Dictionary(of dictionary(of small array of ints)) ... with the dictionaries holding arrays of keys, ... do not pass it a large array of things to process. ... With no breaks, memory goes crazy. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Packed records not making sense
    ... next dword (size 4 ints) ... This makes memory access faster for some processor by "aligning" on ... > I was only able to get my app to read the source file ...
    (comp.lang.pascal.delphi.misc)
  • Re: contiguity of arrays
    ... >> What you seem to be saying is that for a region of memory to constitute ... >> an array of four ints, it doesn't have to be declared with a type that ... A struct type that consists of four ints ...
    (comp.lang.c)
  • Re: contiguity of arrays
    ... >>for this is that the four ints be contiguous. ... > the type is specified by the lvalue used to designate the object" ... Objects are regions of memory; ... > struct, it's not an array of four ints. ...
    (comp.lang.c)