Page 3 of 3

Posted: Wed Jan 01, 2003 5:42 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

Exactly :).

Fred - AlphaSND

Posted: Wed Jan 01, 2003 6:08 pm
by BackupUser
Restored from previous forum. Originally posted by horst.
Originally posted by fred

Exactly :).
Now I know what confused me:

*B.BLAH actually is not a pointer, but a structured data object,
like ANY.BLAH, however, mapped on existing data through a pointer.

A string is also a data object with a pointer, but we still call it
a string, not a pointer.
The fact that we must supply a memory address for the "mapped" object
does not mean that the object is a pointer.

So, the asterisk in this case actually stands for "mapped object",
not for "pointer".


Horst

Posted: Wed Jan 01, 2003 10:55 pm
by BackupUser
Restored from previous forum. Originally posted by TronDoc.
Originally posted by DaniloIf every string would have its own memory address, the strings would also be unlimited in size - like in all other languages.
:):):)most languages I've uses impose a limit on string length. I know this is not an answer to the question nor part of the debate; but I just found this comment odd. Joe

elecTRONics DOCtor
{registeredPB}P150 32Mb w98/DOS/Linux NO DirX NO IE :wink:

Posted: Thu Jan 02, 2003 1:01 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.

TronDoc:
Ok, so strings in PB should stay limited to 64k - because
you used the wrong languages ?? (dont take it too seriously :))

IMHO, a string in Win32 is limited to 2GB in size.
Thats theoretically and i´ve never seen a code using
such big strings, but "small" sizes like 10MB are not
a problem in any language i work with.
ASM and C for example (i just decited 1 week ago that
i will learn C and C++ now, and my compiler of choice
doesnt have such limits like 64k).

I´m talking about Win32, not RealMode DOS.. :)

...and of course there is no "unlimited" because
the first limit is: 4GB max for x86-32-PCs, but
user applications limited to 2GB in Win32
(if this hasent changed with latest windows).
Second limit: Available mem (incl. swap space)
that my app can allocate.
This are hardware and OS limits, not limits
somebody wanted to build into a compiler.

What are the limited languages you use ??

cya,
...Danilo

(registered PureBasic user)

Posted: Thu Jan 02, 2003 2:53 pm
by BackupUser
Restored from previous forum. Originally posted by TronDoc.
Originally posted by Danilo

TronDoc:
Ok, so strings in PB should stay limited to 64k - because
you used the wrong languages ?? (dont take it too seriously :))
....I´m talking about Win32, not RealMode DOS.. :)
....cya,...Danilo...(registered PureBasic user)
ASIC (DOS) LOL - I still use it. Joe

elecTRONics DOCtor
{registeredPB}P150 32Mb w98/DOS/Linux NO DirX NO IE :wink: