|
转自 http://extenduser.communityzero.com/extend?go=2148892+ N+ E5 O% g! c8 _- Z4 L
' l5 N. F3 q1 q3 j4 n
Extensim 开发商技术交流论坛
2 `; `3 o; C* M3 n1 }; C$ Y! X
0 ] A1 }" A1 yJEFFZZ111 老兄帮我问的关于ModL语言的一些知识,供大家参考。1 [: S2 }" O$ o+ _1 D, u& }2 M
, x2 V( R9 m' ]! j& s2 W“
$ [: E8 e$ N/ M& T# {about ModL language itself
$ j% [! P# P2 k* L- BPosted: Feb 4, 2009 12:25 PM 24 views
; X( {1 L/ [% P* \/ z& n/ V) t3 C0 { b6 h: C
Hi ;' L* j/ a) x6 a) y
One friend of mine mentioned about the topics of Object-oriented language.5 V2 z" w n; f% C; I
Is ModL object-oritented? What is the strength of ModL , compared with other popular language , VC++, java , .NET....) F9 y! [- K* U+ s6 X
7 ~9 j; d/ Z+ |$ B& m: v- s
Is ModL only be uesd together with Extendsim development environment ?? Can we use ModL as a standalone language like VC++,etc. to develop software?
$ S. @$ i2 G7 S
1 r! {: W! y( U5 W+ eWhat about the executiuon speed of the language , compared with other language..?: |1 e/ u; @9 O$ w6 D* F
, S. K% \8 q8 W8 {3 w
I found a comment on the website , it says: " MODL isn't exactly object oriented and it isn't* T) F, u; |% h! L3 [- ]
exactly procedural either and there is no encapsulation mechanism." , ...by Kramer.Newsreader@Gmail.Com
' |4 y6 P3 \/ `& W$ E2 Vand another comment "But in general, proprietary languages (especially those tied to another
* i3 w( `, N- P* B# S# L% Z# Nprogram) are usually not desirable because you can't find tools, such
7 l2 V8 b9 \; C/ \as unit testers, for them." . ....
$ {" o# H/ G; UI am puzzeld...
- k8 i9 \0 c: Y: {+ h
3 Z% }, A0 y" J" s1 u7 kRE: about ModL language itself
' D: `! N% H0 j- G/ E- B: y- lPosted: Feb 5, 2009 12:28 AM 15 views
% h) k, a4 x; w/ [ r; N
% @* R7 w# W& z5 T8 vIn reply to: about ModL language itself — Hi ...
: J/ U% w) U& h, |* K# ^1 a, T( b! Bposted by jeffzz111 on Feb 4, 2009 12:25 PM
0 x* t! D5 Z& \ModL uses a C syntax. It is close enough to C that, just yesterday, I copied in some C code to an equation block, made some changes so that it accessed the database, and it worked on the first try. Anyone familiar with C can work with ModL easily. The differences between ModL and C are designed to make programming easier, safer, and faster for simulation related problems. For example, we have built-in functions that support linked lists, probably the most-used data structure in discrete event simulation. ModL only works within the ExtendSim framework. We have looked into using other languages such as Java, but were unable to create the same level of interactivity and integration. With ModL the blocks only need to be recomplied when you change their structure. In Java based tools, the java code for the entire simulation has to be regeneated and the program recomplied/translated each time you change the model. I am sure you can see the advantage in our approach. While ModL has some object oriented features (such as overloading in some cases), it is not strictly object oriented. ExtendSim itself is developed in C++ and is created with object oriented techniques.) f' ?% Z4 H1 Q. ~
I hope this helps
a7 a: O. c! c7 y" rdavek |
评分
-
查看全部评分
|