Mezzanine / Native?
[1/10] from: tim::johnsons-web::com at: 12-Feb-2003 12:12
Two related Issues:
1)Anyone have a suggestion as to how to get a list
of rebol words that are mezzanine functions?
2)And the following console session has got me bewildered:
>> help print
USAGE:
PRINT value
DESCRIPTION:
Outputs a value followed by a line break.
PRINT is a native value.
ARGUMENTS:
value -- The value to print (Type: any)
>> native? 'print
== false
; say WHAT? What's up with that? rebol just told
; me that 'print is native. <!-- DUH -->
any ideas on that one?
thnx n adv
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com
[2/10] from: carl:cybercraft at: 13-Feb-2003 12:43
On 13-Feb-03, Tim Johnson wrote:
> Two related Issues:
> 1)Anyone have a suggestion as to how to get a list
<<quoted lines omitted: 13>>
> ; me that 'print is native. <!-- DUH -->
> any ideas on that one?
Try this, Tim...
>> native? :to-integer
== false
>> native? :print
== true
>> native? :no-word
** Script Error: no-word has no value
** Near: native? :no-word
>> native? 'no-word
== false
--
Carl Read
[3/10] from: g:santilli:tiscalinet:it at: 13-Feb-2003 1:24
Hi Tim,
On Wednesday, February 12, 2003, 10:12:36 PM, you wrote:
TJ> 1)Anyone have a suggestion as to how to get a list
TJ> of rebol words that are mezzanine functions?
help function!
>>> native? 'print
TJ> == false
>> native? :print == true
>> type? 'print == word!
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[4/10] from: greggirwin:mindspring at: 12-Feb-2003 17:23
Hi Tim,
TJ> 1)Anyone have a suggestion as to how to get a list
TJ> of rebol words that are mezzanine functions?
I thought I had one somewhere, but couldn't find it. I'm sure somebody
will post something better, but this might get you started.
i: 0
foreach word first system/words [
if all [value? w: to word! :word function? get w] [
i: i + 1
print [i word]
]
]
TJ> 2)And the following console session has got me bewildered:
>> native? :print
== true
-- Gregg
[5/10] from: tim:johnsons-web at: 12-Feb-2003 15:49
* Carl Read <[carl--cybercraft--co--nz]> [030212 15:17]:
> Try this, Tim...
> >> native? :to-integer
<<quoted lines omitted: 6>>
> >> native? 'no-word
> == false
Thanks Carl:
Now, how about the mezzanine part?
I'm presuming that if it isn't native,
it's mezzanine.
Tell me if I'm wrong. :-)
-tj-
> > Two related Issues:
> > 1)Anyone have a suggestion as to how to get a list
<<quoted lines omitted: 19>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com
[6/10] from: amicom:sonic at: 12-Feb-2003 17:27
Try this:
> help native!
There are also other native types, like op! and action!
Bohdan "Bo" Lechnowsky
Lechnowsky Technical Consulting
At 12:12 PM 2/12/03 -0900, you wrote:
[7/10] from: tim:johnsons-web at: 12-Feb-2003 18:31
* Bohdan or Rosemary Lechnowsky <[amicom--sonic--net]> [030212 17:42]:
> Try this:
Thanks Bo:
> > help native!
But, is there a way to just get a list of rebol
words that are mezzanine (have source code)?
I hope I'm being a little clearer.
cheers
-tim-
> There are also other native types, like op! and action!
> Bohdan "Bo" Lechnowsky
<<quoted lines omitted: 39>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com
[8/10] from: amicom:sonic at: 12-Feb-2003 21:13
Tim,
> help function!
But remember that a lot of mezzanine functions related to VID are bound to
a context inside the system object, so they can be difficult to modify.
-Bo
At 06:31 PM 2/12/03 -0900, you wrote:
[9/10] from: tim:johnsons-web at: 13-Feb-2003 7:35
* Bohdan or Rosemary Lechnowsky <[amicom--sonic--net]> [030212 21:31]:
> Tim,
>
> > help function!
Thanks Bo! That's the ticket.
> But remember that a lot of mezzanine functions related to VID are bound to
> a context inside the system object, so they can be difficult to modify.
Not a problem. Just wanted a way to show students what 'internal'
rebol code looks like.
cheers
-tim-
> -Bo
> At 06:31 PM 2/12/03 -0900, you wrote:
<<quoted lines omitted: 69>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com
[10/10] from: ammon:addept:ws at: 14-Feb-2003 1:40
REBOL/Link 1.0.5.3.1 6-May-2002
Copyright 2000-2002 REBOL Technologies. All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
Type DESKTOP or SET-USER for settings.
>> ? Function!
Found these words:
? function! Prints information about words and values.
?? function! Prints a variable name followed by its molded
valu...
abort-launch function! []
<snip>
To many to list here...
HTH
Ammon Johnson
CIO of Addept ---------- (www.addept.ws)
435.616.2322 ---------- (ammonATaddeptDOTws)
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted