Ask a Question related to Ruby, Design and Development.
-
Artur Merke #1
multi line comments in ruby
Hi,
some time (years ;-) ago there was a discussion about multi line comments
in ruby on this list. I didn't follow it completely, just found it in
news.google. There were sth. about 60 postings but AFAIK today (and it is
2 years later!) there is still no other way to make multi line comments
in ruby then the cumbersome
=begin
....
=end
block? Is this right, or have I simply missed something?
IMHO a simple c/c++ style comment
/*
....
*/
is missing in ruby!
Artur
__________________________________________________ _____________________________
Artur Merke
||| [email]artur.merke@udo.edu[/email]
(O-O)
_____________________________________________.oo0--(_)--0oo.___________________
Artur Merke Guest
-
multi line title in xml
I've just completed the tutorial on "Creating a Dynamic Playlist for Progressive Flash Video"... -
Multi-line datagrid
I'd like to have most of my fields on one row of the datagrid, like it is by default, but put one of the fields (a long description field) on a... -
Multi-line keys in SQL?
I've been using FM for many years now, and have made extensive use of multi-line keys (multiple values in a text field, separated by returns, for... -
Auto size multi-line
Having an issue... When displaying text in a multi-line text box in layout view, it gets cut-off if the text is larger than the size of the box.... -
Multi-line text
If I have a text layer with multiple lines, the spacing between them is extreme. Is there any to decrease the spacing in Elements v.2? Thanks,... -
Robert Klemme #2
Re: multi line comments in ruby
"Artur Merke" <merke@ls1.cs.uni-dortmund.de> schrieb im Newsbeitrag
news:Pine.LNX.4.33.0311100952070.17966-100000@as0203.cs.uni-dortmund.de...comments> Hi,
>
> some time (years ;-) ago there was a discussion about multi lineis> in ruby on this list. I didn't follow it completely, just found it in
> news.google. There were sth. about 60 postings but AFAIK today (and itPersonally I don't miss it since I don't find =begin =end tedious. As far> 2 years later!) there is still no other way to make multi line comments
> in ruby then the cumbersome
>
> =begin
> ...
> =end
>
> block? Is this right, or have I simply missed something?
>
> IMHO a simple c/c++ style comment
>
> /*
> ...
> */
>
> is missing in ruby!
as I remember there was some problem with the language syntax that
prevented usage of /* */. And, after all: Ruby != C... :-)
Regards
robert
Robert Klemme Guest
-
Josef 'Jupp' Schugt #3
Re: multi line comments in ruby
* Artur Merke; Mon, 10 Nov 2003 10:28:17 +0100
Here's an evil hack that you should *not* use:> some time (years ;-) ago there was a discussion about multi line comments
> in ruby on this list. I didn't follow it completely, just found it in
> news.google. There were sth. about 60 postings but AFAIK today (and it is
> 2 years later!) there is still no other way to make multi line comments
> in ruby then the cumbersome
>
>=begin
> ...
>=end
_=<<_
This
is
a
multiline
pseudo-comment
_
Josef 'Jupp' Schugt
Josef 'Jupp' Schugt Guest
-
Robert Klemme #4
Re: multi line comments in ruby
"Josef 'Jupp' Schugt" <jupp@gmx.de> schrieb im Newsbeitrag
news:bop7am$1hbu6a$1@ID-53633.news.uni-berlin.de...comments> * Artur Merke; Mon, 10 Nov 2003 10:28:17 +0100
>> > some time (years ;-) ago there was a discussion about multi lineit is> > in ruby on this list. I didn't follow it completely, just found it in
> > news.google. There were sth. about 60 postings but AFAIK today (andcomments> > 2 years later!) there is still no other way to make multi lineI'm wondering why you present it. Isn't that contradictory?>> > in ruby then the cumbersome
> >
> >=begin
> > ...
> >=end
> Here's an evil hack that you should *not* use:
:-)
robert
Robert Klemme Guest
-
Josef 'Jupp' SCHUGT #5
Re: multi line comments in ruby
Hi!
* Robert Klemme; 2003-11-17, 14:18 UTC:Because it exists.> "Josef 'Jupp' Schugt" <jupp@gmx.de> schrieb im Newsbeitrag
> news:bop7am$1hbu6a$1@ID-53633.news.uni-berlin.de...>> > Here's an evil hack that you should *not* use:
> I'm wondering why you present it.
No, I say one should not use it as in 'refrain from using it unless> Isn't that contradictory?
you precisely know what you are doing' (the RFC SHOULD that is :-).
Josef 'Jupp' Schugt
--
.-------.
message > 100 kB? / | |
sender = spammer? / | R.I.P.|
text = spam? / ___| |___
Josef 'Jupp' SCHUGT Guest



Reply With Quote

