Difference between revisions of "ObjectType:stringptr"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 +
{{ObjectType-Vitals|stringptr|[[LavishScript]]|[[ObjectType:string|string]]|the stored text|none|no|const char *}}
 +
 
== Description ==
 
== Description ==
A [[DataType:stringptr|stringptr]] is actually the same as [[DataType:string|string]], but is only to be used when the data refers to an original text value, rather than temporary storage.
+
A [[ObjectType:stringptr|stringptr]] is actually the same as [[ObjectType:string|string]], but has an Address member. There is no particular reason to use this type instead of string.
  
 
== Members ==
 
== Members ==
* [[DataType:int|int]] '''Address''': The memory address of the actual text
+
* [[ObjectType:int64|int64]] '''Address''': The memory address of the actual text
  
 
== Methods ==
 
== Methods ==
 
''(none)''
 
''(none)''
 
== Inherits ==
 
* [[DataType:string|string]]
 
 
== Returns ==
 
The text
 
  
 
== Examples ==
 
== Examples ==
 
===Display a string pointers address===
 
===Display a string pointers address===
 
*echo Memory Address: ${Point1.Address}
 
*echo Memory Address: ${Point1.Address}
 
== Operates On ==
 
<tt>const char *</tt>
 
 
Note: This type operates identical to string, and is only provided for completeness.
 
  
 
== See Also ==
 
== See Also ==
* [[LavishScript:Data Types|Data Types]]
+
{{LavishScript:ObjectType}}
 
 
[[Category:LavishScript]]
 
[[Category:LavishScript Data Types]]
 

Latest revision as of 16:08, 8 July 2018

Object Type Vitals
stringptr
Defined By LavishScript
Inherits string
Reduces To the stored text
Variable Object Type none
Uses Sub-Types no
C/C++ Type const char *

Description

A stringptr is actually the same as string, but has an Address member. There is no particular reason to use this type instead of string.

Members

  • int64 Address: The memory address of the actual text

Methods

(none)

Examples

Display a string pointers address

  • echo Memory Address: ${Point1.Address}

See Also

LavishScript Object Types