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

tag!

 [1/3] from: hallvard::ystad::helpinhand::com at: 25-Jan-2002 15:20


I like that tag! is a datatype. But. It's not a string. So certain things that may be done to strings may not be done to tags. Still, it sometimes behaves like it's not really a datatype of its own, but, in fact, a string.
>> a: <a href="">
== <a href="">
>> b: <a href ="">
== <a href ="">
>> a = b
== false Shouldn't a = b return true here? In my opinion, these two tags are alike, just like two blocks with different spacing:
>> blk1: [ 1 2 3 ]
== [1 2 3]
>> blk2: [
[ 1 2 [ 3] == [ 1 2 3]
>> blk1 = blk2
== true Is this behaviour wanted? To what degree is tag! a datatype? ~H

 [2/3] from: carl:cybercraft at: 26-Jan-2002 3:55


On 26-Jan-02, Hallvard Ystad wrote:
> I like that tag! is a datatype. > But.
<<quoted lines omitted: 8>>
>>> a = b > == false
It's not a block, but it is a series, like a block and a string are...
>> a: <a href="">
== <a href="">
>> series? a
== true And RT have decided that each character in a tag can be accessed...
>> foreach n a [print n]
a h r e f
> Shouldn't a = b return true here? In my opinion, these two tags are > alike, just like two blocks with different spacing:
<<quoted lines omitted: 9>>
> == true > Is this behaviour wanted? To what degree is tag! a datatype?
tag! is definately a datatype. If you need a tag's contents to behave like a block, you could use to-block...
>> c: to-block a
== [a href= ""] but it won't give consistant results. Your other example would give this for instance...
>> to-block <a href ="">
== [a href = ""] HTH, anyway...
> ~H > Prętera censeo Carthaginem esse delendam
-- Carl Read

 [3/3] from: rotenca:telvia:it at: 25-Jan-2002 17:12


Hi, Hallvard Ystad
> >> a: <a href=""> > == <a href="">
<<quoted lines omitted: 3>>
> == false > Shouldn't a = b return true here? In my opinion, these two tags are alike,
just like two blocks with different spacing: Tag is not a series datatype of type any-block but a series datatype of type any-string. Look at the tables in Core User Guide Version 2.3 pp. 5-25 5-26. Every string datatype has his own rules for space, but they are never ignored.
> Is this behaviour wanted? To what degree is tag! a datatype?
1) yes, i think 2) at all ciao romano

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