> include assembler in C++ code), specifically I want to call a
> program/command from the command line , using C's 'system()' function, or
> an Eiffel function if one exists...
The following _should_ work:
my_system (the_command: STRING): INTEGER is
Eiffel effectively replaces my_system with a called to C's system. You
can wrap that in require/ensure clauses as well. That's with ISE
Eiffel, I can't say whether it's the same with SiG's Eiffel, and
`STRING' _may_ need to be `ANY'.
> I just know I am going to get viciously flamed for this :-), but I
> have a quick Eiffel question to ask... Allegedly I can link code with C,
I'll play the devil's advocate and say that Eiffel really isn't as bad
as everyone makes out, it seems to be one of those "the thing everyone
loves to hate" situations. Maybe the compiler is a bit slow, but as a
language, it's `trickle up' exception handling mechanisms (require,
ensure, invariant, check, rescue and retry) are pretty superior.
> I'd ask this question on comp.lang.eiffel, but I don't want people to
> think I hang out with those Eiffel programming nerds! ;->
Wouldn't they be just as bad by getting caught reading comp.lang.eiffel ?
-- Matthew Gream <M.Gream@nospam.uts.edu.au> -- Consent Technologies, (02) 821-2043 Disclaimer: From? \notin speaking_for(Organization?) [cfqx103]