IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New CRC: Not Delphi == Stupid
If you are not going to post anything beyond name calling, then why post at all?????

What is calling something stupid without any textual backing going to achieve? I cannot figure out your motivation other than Yosemite Sam-like adrenaline.
________________
oop.ismad.com
New It appears to be a different way to do things
I am not saying it is stupid, just different. We would have to see how the cmp() function is written, it obviously takes a parameter to use to compare two values. I assume it returns the boolean value of True or False, or 0 or 1 or some other way you keep track of True/False conditions.

It would then be a matter of how the cmp() function handles the parameters and parses out the logic statements. That is if cmp() is a user defined function and not an external one written in another language and linked up at runtime, or imbedded machine code.

But let us just say that it is a user defined function. Excuse my Visual BASIC syntax:

Function cmp(value1 as Integer, opcode as String, value2 as Integer) as Boolean
Dim result as Boolean

result = false ' Just in case the function fouls up

Select Case opcode
Case ">"
If value1 > value2 Then
result = True
Else
result = False
End If
Case "<"
If value1 < value2 Then
result = True
Else
result = False
End If
Case "="
If value1 = value2 Then
result = True
Else
result = False
End If
Case Else
result = False
End Select

cmp = result ' Set the function to the desired result

End Function

In this case, based on what is passed to the function, can return a true or false value. In this way VB can be changed to examine two Intergers via cmp(1,">",2) which would return a Boolean False and cmp(1,"<",2) which would return a Boolean True. Using an OOP design, you could build this function into a class, and overload it so that it can handle Real, Long Integer, and other values by using Overloading. Of course you would have to understand how OOP works to do this, but then cmp(1.1, ">", 1.2) would be valid as much as cmp(1292921, ">", 93919987), but either one would fail on the cmp() function that is written only for Integers and does not handle any sort of OOP design. You would be forced to create multiple copies of this function and name them cmpint(), cmpreal(), complong(), etc.

"I can see if I want anything done right around here, I'll have to do it myself!"  Moe Howard

New are you being a meanee?
>> Of course you would have to understand how OOP works to do this <<

This sounds like a dig. I know perfectly well the stereotypic type-based polymorphic dispatching of operand "types". BTW, L has only one type. Thus, there is no "type" to dispatch on.

Anyhow, I am thinking of making the world's first table-based interpreter. No RAM shct like linked lists or RAM hashes. All tables all the time. It makes it a snap to inspect the guts of runs.
________________
oop.ismad.com
     Language with syntax like command(params) ? - (tablizer) - (30)
         Most existing languages have that syntax: C, Pascal, Java... -NT - (CRConrad) - (21)
             I think you are missing my point - (tablizer) - (20)
                 Haven't seen one but ... - (altmann) - (2)
                     good suggestions, but..... - (tablizer) - (1)
                         Haskell - (ChrisR)
                 Isn't it obvious that that's fscking styoopid?!? -NT - (CRConrad) - (3)
                     CRC: Not Delphi == Stupid - (tablizer) - (2)
                         It appears to be a different way to do things - (orion) - (1)
                             are you being a meanee? - (tablizer)
                 Syntax is syntax. - (admin) - (2)
                     complex? - (tablizer) - (1)
                         Simple. - (a6l6e6x)
                 Why? - (ChrisR) - (8)
                     not the full story - (tablizer) - (7)
                         Not a contest with Lisp - (ChrisR) - (6)
                             Guessing but... - (Fearless Freep) - (5)
                                 I doubt it... - (ChrisR) - (4)
                                     not true - (tablizer)
                                     Yes, he's been vocal - but then, he wasn't writing a parser! -NT - (CRConrad) - (2)
                                         A "walk a mile in another's compiler" argument? - (tablizer) - (1)
                                             (addendum) - (tablizer)
                 (minor correction) - (tablizer)
         Interesting idea. - (static)
         TCL? - (Arkadiy)
         Name your arguments - (tuberculosis) - (5)
             not sure I fully agree - (tablizer) - (4)
                 Limitation is in your head - (tuberculosis) - (3)
                     Software engineering is all about our heads - (tablizer) - (2)
                         No - (tuberculosis) - (1)
                             not necessarily "ordered" - (tablizer)

void main(int argc, char **argv) { printf("Hello, LRPD.\n"); }

108 ms