Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

'to-string vs 'form

 [1/2] from: hallvard::ystad::helpinhand::com at: 24-Oct-2001 9:39


Can anyone tell me the difference between 'to-string and 'form?
>> source form
form: native [ "Converts a value to a string." value "The value to form" ]
>> source to-string
to-string: func ["Converts to string value." value "Value to convert"][to string! :value] ~H

 [2/2] from: carl:cybercraft at: 24-Oct-2001 20:59


On 24-Oct-01, Hallvard Ystad wrote:
> Can anyone tell me the difference between 'to-string and 'form?
Here's one difference...
>> form ["aa" "bb"]
== "aa bb"
>> to-string ["aa" "bb"]
== "aabb"
>>> source form > form: native [
<<quoted lines omitted: 6>>
> ~H > Praetera censeo Carthaginem esse delendam
-- Carl Read

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted