Making new infix operators ?
[1/2] from: geza:lakner:helka:iif:hu at: 19-Apr-2001 19:11
Hello, REBOLers !
Just for a bit of "syntactic sugar" :-) :
Is it possible to define new infix operators ?
I tried :
>> ||: make op! ... etc.
** Script Error: Cannot use make on datatype! value
It would be a very nice feature (á la Prolog, or C++) to define (or "overload")
some operators.
Cheers:
Geza
=========================================================
Geza Lakner M.D., B.C.
internist, clinical pharmacologist
[Geza--Lakner--helka--iif--hu]
[h13164lak--ella--hu]
[2/2] from: larry::ecotope::com at: 20-Apr-2001 19:09
Hi Geza
Sorry, it is not possible to define new infix operators in REBOL. It would
be a nice feature, but likely would require major changes to the
interpreter.
-Larry
----- Original Message -----
From: "Geza Lakner MD" <[geza--lakner--helka--iif--hu]>
To: <[rebol-list--rebol--com]>
Sent: Thursday, April 19, 2001 10:11 AM
Subject: [REBOL] Making new infix operators ?
Hello, REBOLers !
Just for a bit of "syntactic sugar" :-) :
Is it possible to define new infix operators ?
I tried :
>> ||: make op! ... etc.
** Script Error: Cannot use make on datatype! value
It would be a very nice feature (a la Prolog, or C++) to define (or
overload
)
some operators.
Cheers:
Geza
=========================================================
Geza Lakner M.D., B.C.
internist, clinical pharmacologist
[Geza--Lakner--helka--iif--hu]
[h13164lak--ella--hu]