REBOL Developer Network

CALLBACK vs CALLBACK!

Carl Sassenrath, CTO
REBOL Technologies
13-Mar-2008 22:45 GMT

Article #0025
Main page || Index || Prior Article [0024] || Next Article [0026] || 43 Comments || Send feedback

The document on callback functions shows them specified two ways:

example: make routine! [
    c [callback! [int int return: [int]]]
    return: [int]
] test-lib "test"

and

example: make routine! [
    c [callback [int int return: [int]]]
    return: [int]
] test-lib "test"

Obviously, both cannot be correct.

Also, rarely do we use a word with ! for non-datatypes, although in this case it is "kind of" a datatype.

I need your input on which name you prefer. Thanks.

43 Comments

Updated 11-Sep-2009   -   Copyright 2006 Carl Sassenrath   -   WWW.REBOL.COM   -   Edit   -   Blogger Source Code