Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-05

unit name with dots

10 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

mariano podesta

hi,
does fpc support unit names with more than one dot or is planned?

in delphi 7 you can compile this:

// unit main.dpr
program main;
uses
  test.sec;
begin
  test.sec.doit;
end.
// unit test.sec.pas
unit test.sec;
interface
procedure doit;
implementation
procedure doit;
begin
  writeln('anda');
end;
end.

thanks,
marianop

Reply by email

Florian Klaempfl
to mariano podesta
mariano podesta wrote
hi, does fpc support unit names with more than one dot or is planned? in delphi 7 you can compile this:

This looks to me like a delphi bug. A unit must be a valid pascal identifier. Or is there any use in supporting this?

Show quoted text 36 lines
// unit main.dpr program main; uses test.sec; begin test.sec.doit; end. // unit test.sec.pas unit test.sec; interface procedure doit; implementation procedure doit; begin writeln('anda'); end; end. thanks, marianop ------------------------------------------------------------------------ _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Graeme Geldenhuys
to Florian Klaempfl: This looks to me like a delphi bug. A unit must be a valid pascal identifier. Or is there…
Florian Klaempfl wrote 8 lines
mariano podesta wrote: > hi, > does fpc support unit names with more than one dot or is planned? > > in delphi 7 you can compile this: This looks to me like a delphi bug. A unit must be a valid pascal identifier. Or is there any use in supporting this?

Maybe that was a build-up to the Delphi.Net version. I don't see the use of that in FPC.

Regards,
Graeme.

There's no place like 127.0.0.1

Reply by email

Marco van de Voort
to Graeme Geldenhuys
Show quoted text 11 lines
On 5/25/06, Florian Klaempfl wrote: > mariano podesta wrote: > > hi, > > does fpc support unit names with more than one dot or is planned? > > > > in delphi 7 you can compile this: > > This looks to me like a delphi bug. A unit must be a valid pascal > identifier. Or is there any use in supporting this? Maybe that was a build-up to the Delphi.Net version.

It is yes.

I don't see the use of that in FPC.

Me too.

Reply by email

mariano podesta
to Marco van de Voort
> > This looks to me like a delphi bug.

a bug? are you serious?

A unit must be a valid pascal

> > identifier.

fpc just support valid standard pascal? this is not what i heard. delphi7 supports it since 2002. not a .net release.

Or is there any use in supporting this?

ofcourse there is a use.
you see a use in "myfile.tar.gz"? or is a bug too? open your mind mr. quaid.

Reply by email

Florian Klaempfl
to mariano podesta
mariano podesta wrote
> > This looks to me like a delphi bug. a bug? are you serious?

Of course, asdf.asdf is no valid pascal identifier.

Show quoted text 7 lines
A unit must be a valid pascal > > identifier. fpc just support valid standard pascal? this is not what i heard. delphi7 supports it since 2002. not a .net release.

We don't support every bug/strange thing delphi supports.

Show quoted text 6 lines
Or is there any use in supporting this? ofcourse there is a use. you see a use in "myfile.tar.gz"? or is a bug too?

This is something different?

open your mind mr. quaid.

If you want to insult people you might do it somewhere else. Thank you.

Reply by email

mariano podesta
to Florian Klaempfl
We don't support every bug/strange thing delphi supports.

ok, i understand your point.
in my very humble opinion it was an interesting idea.

If you want to insult people you might do it somewhere else. Thank you.

it was a joke. not aiming to offend anybody.

thanks,
marianop

Reply by email

Michael Van Canneyt
to mariano podesta: a bug? are you serious? A unit must be a valid pascal fpc just support valid standard…
mariano podesta wrote 12 lines
> > > > This looks to me like a delphi bug. a bug? are you serious? A unit must be a valid pascal > > > identifier. fpc just support valid standard pascal? this is not what i heard. delphi7 supports it since 2002. not a .net release.

The unit names with dots in them were a preparation for the .NET namespaces, just as the 'unsafe code' "errors" and some other things introduced in D7.

Regardless of whether this has any use or not:

None of the FPC developers currently has the time nor wish to support any of the .NET enhancements, and that includes the dot in the unit names.

Michael.

Reply by email