这是正确的吗? [英] Is this right?

查看:59
本文介绍了这是正确的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从讲座中听到一些我不同意的事情。如果我错了,我想听听



变量是一个对象

" C在过去30年里没有改变

C是扩展汇编语言

程序生成不可读代码

我知道C可能被认为是低级别,但我不确定

扩展汇编语言。我甚至不认为HLA是一个扩展的组件

语言。


但我可能错了请给出你的意见

谢谢Profetas

I have heard some thing from my lecture that I disagree. and I would like
to hear if I am wrong.

"A variable is an object"
"C hasn''t changed in the past 30 years"
"C is an extended assembly language"
"Procedure generate unreadable code"
I know that C may be considered low level, but I am not sure about
extended assembly language. I don''t even consider HLA an extended assembly
language.

But I may be wrong please give your opinion
Thanks Profetas

推荐答案

" Profetas" <徐***** @ yahoo.com>在留言中写道

新闻:e3 ****************************** @ localhost.ta lkaboutprogramming。 com ...
"Profetas" <xu*****@yahoo.com> wrote in message
news:e3******************************@localhost.ta lkaboutprogramming.com...
我从讲座中听到一些我不同意的事情。如果我错了,我想听听。

变量是一个对象。


True。

C在过去30年里没有变化


错误。在此期间(1989,1995,1999)至少三次改变了C(通过更新标准)



C是扩展装配语言"


IMO这是一个相当合理的描述。但imo

应该符合''generalized''(即''汇编

language''必然是特定于处理器的,而C

''概括''它)。 C被设计为独立于平台。

过程生成不可读的代码


我不知道这是什么意思。什么

你打电话''程序''在C中有一个名字:

''功能''。


人们可以用任何语言写出可读或不可读的代码

。前者当然确实需要经验

和练习。并且''可读''是一个有点主观的术语。

我知道C可能被认为是低级别的,但我不确定
扩展汇编语言。


我认为很多人称之为''汇编式''的原因是因为

它的许多构造经常可以直接翻译成

汇编指令(例如''++''和''=''运算符)。

更高"级别概念通常通过函数表示,

不是''native''C语句。 (与例如BASIC相比,例如

PRINT命令是语言本身的一部分)。


我甚至不考虑HLA扩展汇编
语言。
I have heard some thing from my lecture that I disagree. and I would like
to hear if I am wrong.

"A variable is an object"
True.
"C hasn''t changed in the past 30 years"
False. C has been changed (via updates to the standard)
on at least three occasions during that time (1989, 1995, 1999).
"C is an extended assembly language"
IMO that''s one fairly reasonable description. But imo
should be qualified with ''generalized'' (i.e. ''assembly
language'' is necessarily processor specific, whereas C
''generalizes'' it). C is designed to be platform-independent.
"Procedure generate unreadable code"
I have no idea what this is supposed to mean. What
you are calling ''procedure'' has a single name in C:
''function''.

One can write either ''readable'' or ''unreadable'' code
in any language. The former, of course does take experience
and practice. And ''readable'' is a somewhat subjective term.
I know that C may be considered low level, but I am not sure about
extended assembly language.
I think the reason many call C ''assembly-like'' is because
many of its constructs can often be directly translated to
assembly instructions (e.g the ''++'' and ''='' operators).
"Higher" level concepts are typically expressed via functions,
not ''native'' C statements. (Compared to e.g. BASIC, where e.g.
the "PRINT" command is part of the language itself).

I don''t even consider HLA an extended assembly
language.




为什么不呢?


-Mike



Why not?

-Mike


Profetas写道:
Profetas wrote:
我从讲座中听到一些我不同意的事情。如果我错了,我想听听。

变量是一个对象。


非正式:每个变量都是一个对象,但不是每个

对象都是一个变量。


形式:我不知道。 C标准没有定义

变量,除非可能参考ISO / IEC 2382-1。

我没有后者的副本,我不感兴趣

购买一个只是为了回答你的问题。

C在过去30年里没有变化


True;它在真空中仍然是299792458米/秒。

C是扩展汇编语言。


编号是。也许。严格定义扩展

和汇编语言,也许这个问题会变得有意义。在此之前,最好将C视为折叠的

重组语言。

过程生成不可读的代码
I have heard some thing from my lecture that I disagree. and I would like
to hear if I am wrong.

"A variable is an object"
Informally: Every variable is an object, but not every
object is a variable.

Formally: I don''t know. The C Standard does not define
"variable," except possibly by reference to ISO/IEC 2382-1.
I do not have a copy of the latter, and am not interested
in purchasing one simply to answer your question.
"C hasn''t changed in the past 30 years"
True; It''s still 299792458 m/s in vacuo.
"C is an extended assembly language"
No. Yes. Maybe. Give rigorous definitions of "extended"
and "assembly language," and perhaps the question will become
meaningful. Until then, it''s best to think of C as a collapsed
reassembly language.
"Procedure generate unreadable code"




不仅如此,讲师还会产生无法解释的句子。


-
Er ********* @ sun.com



Not only that, but lecturer generate unparseable sentence.

--
Er*********@sun.com


Eric Sosman< Er *********@sun.com>潦草地写道:
Eric Sosman <Er*********@sun.com> scribbled the following:
Profetas写道:
Profetas wrote:
我听过一些我不同意的演讲。如果我错了,我想听听。
C在过去30年中没有变化
I have heard some thing from my lecture that I disagree. and I would like
to hear if I am wrong. "C hasn''t changed in the past 30 years"


True;它在真空中仍然是299792458 m / s。

True; It''s still 299792458 m/s in vacuo.




不,那是's,而不是C.


-

/ - Joona Palaste(pa*****@cc.helsinki.fi)-------------芬兰------- -\

\ - http:// www。 helsinki.fi/~palaste ---------------------规则! -------- /

我说''你以前从未玩过'',而不是''玩'因为你从来没有

在''之前播放!

- Andy Capp



No, that''s c, not C.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"I said ''play as you''ve never played before'', not ''play as IF you''ve never
played before''!"
- Andy Capp


这篇关于这是正确的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆